mirror of
https://github.com/tiennm99/cheahjs-free-llm-api-resources.git
synced 2026-10-14 14:17:15 +00:00
refactor: Update commit and pull request steps to use changes_detected boolean output
This commit is contained in:
1 parent
c66eed5e85
commit
4e18897343
1 file changed
+3
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user