From 4e18897343df2c6a9b2fa35c8f54b594fdd8e7e1 Mon Sep 17 00:00:00 2001 From: "Jun Siang Cheah (aider)" Date: Sun, 1 Sep 2024 23:34:55 +0100 Subject: [PATCH] refactor: Update commit and pull request steps to use changes_detected boolean output --- .github/workflows/update-readme.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-readme.yml b/.github/workflows/update-readme.yml index 525d903..c795df7 100644 --- a/.github/workflows/update-readme.yml +++ b/.github/workflows/update-readme.yml @@ -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"