File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -65,18 +65,26 @@ jobs:
65
65
- name : Prune Output
66
66
run : |
67
67
find ${{ env.OUTPUT_PATH }} -type f ! -name "*.rs" -delete
68
+ - name : Check for changes
69
+ id : check_changes
70
+ run : |
71
+ if [[ -n $(git status --porcelain) ]]; then
72
+ echo "changes=true" >> "$GITHUB_OUTPUT";
73
+ fi
68
74
- name : Commit Changes
75
+ if : steps.check_changes.outputs.changes
69
76
run : |
70
77
git checkout -b ${{ env.BRANCH_NAME }} || git checkout ${{ env.BRANCH_NAME }}
71
78
git add -A
72
79
git commit -m "chore(codegen): update bevy bindings"
73
80
git push -u origin ${{ env.BRANCH_NAME }} --force
74
81
- uses : jwalton/gh-find-current-pr@master
82
+ if : steps.check_changes.outputs.changes
75
83
id : findPR
76
84
with :
77
85
state : all
78
86
- name : Create Or Update PR
79
- if : success() && steps.findPR.outputs.number
87
+ if : steps.check_changes.outputs.changes && success() && steps.findPR.outputs.number
80
88
run : |
81
89
gh pr list --base feature/bevy-system-refactor --search "chore(codegen): update bevy bindings" --json number > prs.json
82
90
if [ $(jq '. | length' prs.json) -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments