File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -78,10 +78,15 @@ jobs:
78
78
run : |
79
79
make update-contributors
80
80
81
- if [[ -z "$(git status --porcelain)" ]]; then
81
+ # Stage *all* tracked and untracked changes first…
82
+ git add -A
83
+
84
+ # If the index is identical to HEAD, nothing real changed:
85
+ if git diff --cached --quiet; then
82
86
echo "No changes to commit."
83
87
echo "changed=false" >> $GITHUB_OUTPUT
84
88
else
89
+ echo "Changes detected."
85
90
echo "changed=true" >> $GITHUB_OUTPUT
86
91
fi
87
92
@@ -129,6 +134,7 @@ jobs:
129
134
130
135
# Create a pull request summary:
131
136
- name : ' Create summary'
137
+ if : steps.update-contributors.outputs.changed == 'true'
132
138
run : |
133
139
echo "# :tada: Pull Request created! :tada:" >> $GITHUB_STEP_SUMMARY
134
140
echo "" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments