Skip to content

Commit 616101f

Browse files
authored
Update Schedule.yml
1 parent ec47567 commit 616101f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/Schedule.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,20 @@ jobs:
2323

2424
- name: Run Python Script
2525
run: python worker.py
26-
27-
- name: Commit Changes
26+
27+
- name: Check if there are any changes
28+
id: verify_diff
29+
run: |
30+
git diff --quiet plugins.json || echo "changed=true" >> $GITHUB_OUTPUT
31+
32+
- name: Commit
33+
if: steps.verify_diff.outputs.changed == 'true'
2834
run: |
2935
git config --global user.name "GitHub Actions"
3036
git config --global user.email "[email protected]"
3137
git add plugins.json
3238
git commit -m "Update plugins.json"
33-
git push
39+
40+
- name: Push
41+
if: steps.verify_diff.outputs.changed == 'true'
42+
run: git push

0 commit comments

Comments
 (0)