mirror of
https://github.com/tiennm99/cheahjs-free-llm-api-resources.git
synced 2026-10-14 12:16:39 +00:00
fix: create branch before committing changes
This commit is contained in:
1 parent
cf79b2bbb2
commit
8ec7f1570d
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user