We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e040c59 commit 9b5e5eeCopy full SHA for 9b5e5ee
1 file changed
README.md
@@ -167,9 +167,16 @@ You can use these outputs to trigger other Actions in your Workflow run based on
167
- `changes_detected`: Returns either "true" or "false" if the repository was dirty and files have changed.
168
- `commit_hash`: Returns the full hash of the commit if one was created.
169
170
+**⚠️ When using outputs, the step needs to be given an id. See example below.**
171
+
172
### Example
173
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
180
- name: "Run if changes have been detected"
181
if: steps.auto-commit-action.outputs.changes_detected == 'true'
182
run: echo "Changes!"
0 commit comments