-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gh-actions/github/context
: Fix/improve output (#940)
Signed-off-by: Ryan Northey <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,47 +11,66 @@ inputs: | |
step | ||
env | ||
vars | ||
env: | ||
type: string | ||
job: | ||
type: string | ||
needs: | ||
type: string | ||
vars: | ||
type: string | ||
|
||
|
||
runs: | ||
using: composite | ||
steps: | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].11 | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].12 | ||
name: Config | ||
id: config | ||
with: | ||
input: ${{ inputs.resources }} | ||
options: -Rs | ||
filter: | | ||
split("\n") | map(select(length > 0)) | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].11 | ||
name: Print `github` | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].12 | ||
name: Print github | ||
if: ${{ contains(fromJSON(steps.config.outputs.value), 'github') }} | ||
with: | ||
input: ${{ toJSON(github) }} | ||
options: -C | ||
filter: '.' | ||
print-result: true | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].11 | ||
name: Print `runner` | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].12 | ||
name: Print runner | ||
if: ${{ contains(fromJSON(steps.config.outputs.value), 'runner') }} | ||
with: | ||
input: ${{ toJSON(runner) }} | ||
options: -C | ||
filter: '.' | ||
print-result: true | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].11 | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].12 | ||
name: Print job | ||
if: ${{ contains(fromJSON(steps.config.outputs.value), 'job') }} | ||
with: | ||
input: ${{ toJSON(job) }} | ||
input: ${{ inputs.job || toJSON(job) }} | ||
options: -C | ||
filter: '.' | ||
print-result: true | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].11 | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected].12 | ||
name: Print env | ||
if: ${{ contains(fromJSON(steps.config.outputs.value), 'env') }} | ||
with: | ||
input: ${{ toJSON(env) }} | ||
input: ${{ inputs.env || toJSON(env) }} | ||
options: -C | ||
print-result: true | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected] | ||
name: Print env | ||
if: ${{ contains(fromJSON(steps.config.outputs.value), 'needs') && inputs.needs }} | ||
with: | ||
input: ${{ inputs.needs }} | ||
options: -C | ||
print-result: true | ||
- uses: envoyproxy/toolshed/gh-actions/[email protected] | ||
name: Print env | ||
if: ${{ contains(fromJSON(steps.config.outputs.value), 'vars') && inputs.vars }} | ||
with: | ||
input: ${{ inputs.vars }} | ||
options: -C | ||
filter: '.' | ||
print-result: true |