Skip to content

Commit 0a10af0

Browse files
authored
docs(readme): add note about object outputs (#183)
1 parent 4a0432e commit 0a10af0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ A two-dimensional array, with a list of changed files for each commit that has b
180180
You can use `skip-duplicate-actions` to either skip individual steps or entire jobs.
181181
To minimize changes to existing jobs, it is often easier to skip entire jobs.
182182

183+
> **Note**: You may need to use [`fromJSON`](https://docs.github.com/en/actions/learn-github-actions/expressions#fromjson) to access properties of object outputs. For example, for `skipped_by.runId`, you can use the expression: `${{ fromJSON(steps.skip_check.outputs.skipped_by).runId }}`.
184+
183185
### Example 1: Skip entire jobs
184186

185187
To skip entire jobs, you should add a `pre_job` that acts as a pre-condition for your `main_job`.

0 commit comments

Comments
 (0)