From 0bc28d6e80d5adb0edd60d0d7b2dfcd163f63612 Mon Sep 17 00:00:00 2001 From: Nelson Martell Date: Thu, 20 Jan 2022 00:25:10 -0500 Subject: [PATCH] docs(readme): add note about object outputs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 3708dde..724c73e 100644 --- a/README.md +++ b/README.md @@ -180,6 +180,8 @@ A two-dimensional array, with a list of changed files for each commit that has b You can use `skip-duplicate-actions` to either skip individual steps or entire jobs. To minimize changes to existing jobs, it is often easier to skip entire jobs. +> **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 }}`. + ### Example 1: Skip entire jobs To skip entire jobs, you should add a `pre_job` that acts as a pre-condition for your `main_job`.