Skip to content

Commit

Permalink
fix: modify full sync
Browse files Browse the repository at this point in the history
  • Loading branch information
lcjnil committed Jul 22, 2021
1 parent 238fe20 commit c71c9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/full-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ jobs:
FULLSYNC_LIMIT: 2000
PARTIALSYNC_LIMIT: 10
SYNC_NOTION_FIRST: ${{ steps.cache.outputs.cache-hit != 'true' }}
FULL_SYNC: true
run: npm start
2 changes: 1 addition & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async function fullSync() {
async function partialSync() {
await Promise.all([github.getList(), notion.fullSyncIfNeeded()]);

for (const repo of github.repoList) {
for (const repo of github.repoList.reverse()) {
if (notion.hasPage(repo.nameWithOwner)) {
console.log(`Skip saved page ${repo.nameWithOwner}`);
continue;
Expand Down

0 comments on commit c71c9bd

Please sign in to comment.