Skip to content

Commit 7fa2a5c

Browse files
committed
Fix workflow syncing issue for dev.
1 parent e655525 commit 7fa2a5c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/sync_main_to_dev.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ jobs:
4242
run: |
4343
git fetch origin main
4444
git merge origin/main --no-edit -X ours
45-
# Restore dev-only framework files
46-
git checkout ORIG_HEAD -- docs/index.md
45+
# Restore dev-only files: homepage and all workflow files.
46+
# Workflow files are excluded because the GitHub App lacks the
47+
# `workflows` permission required to push changes to them.
48+
git checkout ORIG_HEAD -- docs/index.md .github/workflows/
4749
git diff --cached --quiet || git commit -m "Restore dev framework files after main sync"
4850
4951
- name: Push dev

0 commit comments

Comments
 (0)