fix: create branch before committing changes

This commit is contained in:
Jun Siang Cheah (aider) committed 2024-09-01 23:32:24 +01:00
1 parent cf79b2bbb2
commit 8ec7f1570d
1 file changed
+3
+3
View File
@@ -41,6 +41,9 @@ jobs:
run: |
git status --porcelain > changes.diff
echo "diff_count=$(cat changes.diff | wc -l)" >> $GITHUB_OUTPUT
- name: Create branch
if: steps.changes.outputs.diff_count != '0'
run: git checkout -b update-readme-${{ github.run_id }}
- name: Commit changes
if: steps.changes.outputs.diff_count != '0'
uses: stefanzweifel/git-auto-commit-action@v5