Skip to content

Commit ee79648

Browse files
ci: move migrate process to another branch
1 parent 33e6e73 commit ee79648

File tree

2 files changed

+3
-6654
lines changed

2 files changed

+3
-6654
lines changed

.github/workflows/update-migrate-progress.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,11 @@ jobs:
3535
- name: Run update migration progress script
3636
run: npm run update-migrate-progress
3737

38-
- name: Check for changes
39-
id: git-check
40-
run: |
41-
git diff --quiet CPPREF_MIGRATE_PROGRESS.md || echo "has_changes=true" >> $GITHUB_OUTPUT
42-
43-
- name: Commit and push if changes
44-
if: steps.git-check.outputs.has_changes == 'true'
38+
- name: Create orphan branch and force push
4539
run: |
4640
git config user.name "github-actions[bot]"
4741
git config user.email "github-actions[bot]@users.noreply.github.com"
42+
git checkout --orphan migrate-progress
4843
git add CPPREF_MIGRATE_PROGRESS.md
4944
git commit -m "chore: update migration progress [skip ci]"
50-
git push
45+
git push --force origin migrate-progress

0 commit comments

Comments
 (0)