refactor: Update commit and pull request steps to use changes_detected boolean output

This commit is contained in:
Jun Siang Cheah (aider) committed 2024-09-01 23:34:55 +01:00
1 parent c66eed5e85
commit 4e18897343
1 file changed
+3 -2
+3 -2
View File
@@ -37,14 +37,15 @@ jobs:
run: |
python src/pull_available_models.py
- name: Commit changes
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
id: commit-changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update README with latest models"
branch: update-readme-${{ github.run_id }}
create_branch: true
changes_detected: true
- name: Create Pull Request
if: steps.changes.outputs.diff_count != '0'
if: steps.commit-changes.outputs.changes_detected
uses: peter-evans/create-pull-request@v6
with:
title: "Update README with latest models"