File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -167,9 +167,16 @@ You can use these outputs to trigger other Actions in your Workflow run based on
167
167
- `changes_detected` : Returns either "true" or "false" if the repository was dirty and files have changed.
168
168
- `commit_hash` : Returns the full hash of the commit if one was created.
169
169
170
+ **⚠️ When using outputs, the step needs to be given an id. See example below.**
171
+
170
172
# ## Example
171
173
172
174
` ` ` yaml
175
+ - uses: stefanzweifel/git-auto-commit-action@v5
176
+ id: auto-commit-action #mandatory for the output to show up in ${{ steps }}
177
+ with:
178
+ commit_message: Apply php-cs-fixer changes
179
+
173
180
- name: "Run if changes have been detected"
174
181
if: steps.auto-commit-action.outputs.changes_detected == 'true'
175
182
run: echo "Changes!"
You can’t perform that action at this time.
0 commit comments