fix: Update if conditions to use new output name diff_count

This commit is contained in:
Jun Siang Cheah (aider) committed 2024-09-01 23:29:50 +01:00
1 parent 79adb71e53
commit cf79b2bbb2
1 file changed
+2 -2
+2 -2
View File
@@ -42,13 +42,13 @@ jobs:
git status --porcelain > changes.diff
echo "diff_count=$(cat changes.diff | wc -l)" >> $GITHUB_OUTPUT
- name: Commit changes
if: steps.changes.outputs.diff != ''
if: steps.changes.outputs.diff_count != '0'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update README with latest models"
branch: update-readme-${{ github.run_id }}
- name: Create Pull Request
if: steps.changes.outputs.diff != ''
if: steps.changes.outputs.diff_count != '0'
uses: peter-evans/create-pull-request@v6
with:
title: "Update README with latest models"