Skip to content

Commit 47035c8

Browse files
committed
ci(python): use git revert instead of reset to avoid push
1 parent 840955c commit 47035c8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/python_uniffi_ci_cd.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,5 +270,6 @@ jobs:
270270
- name: Reset branch
271271
run: |
272272
# Hard reset to the original SHA that triggered the workflow
273-
git reset --hard ${{ github.sha }}
274-
git push --force
273+
git revert --no-commit HEAD
274+
git commit -m "chore(python/${{ inputs.crate }}): revert version commit made by CI due to failure" -m "failed run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
275+
git push

0 commit comments

Comments
 (0)