Skip to content

Commit

Permalink
gh-actions/github/check/start: Mark skipped checks so
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax committed Nov 12, 2023
1 parent aa287a3 commit 2c36b1e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion gh-actions/github/check/start/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,24 @@ runs:
env:
GH_TOKEN: ${{ steps.appauth.outputs.token }}
CHECKS: ${{ inputs.checks }}

- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.1.38
name: Started
id: started
with:
input: ${{ toJSON(steps.start-checks.outputs) }}

- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.1.38
name: Checks
id: checks
with:
input: ${{ toJSON(steps.start-checks.outputs) }}
options: -sc
input: ${{ inputs.checks }}
sanitize-input: false
filter: |
(reduce .[] as $item ({}; . + {($item.id): $item.conclusion})
| to_entries
| map(select(.value))
| from_entries)
as $skipped
| ${{ steps.started.outputs.value }} * $skipped

0 comments on commit 2c36b1e

Please sign in to comment.