Skip to content

Commit

Permalink
gh-actions: Version 0.2.1 (#1217)
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Northey <ryan@synca.io>
  • Loading branch information
phlax authored Dec 6, 2023
1 parent e50f048 commit 41191e7
Show file tree
Hide file tree
Showing 22 changed files with 89 additions and 89 deletions.
2 changes: 1 addition & 1 deletion gh-actions/bson/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:
chmod +x $TMPFILE
echo "path=$TMPFILE" >> $GITHUB_OUTPUT
shell: bash
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
id: command
with:
input: ${{ inputs.input }}
Expand Down
4 changes: 2 additions & 2 deletions gh-actions/cache/prime/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ runs:
lookup-only: true
path: ${{ inputs.path_tmp }}
key: ${{ inputs.key }}
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
if: ${{ ! inputs.lock-id && steps.cache-restore-initial.outputs.cache-hit != 'true' }}
id: lock-id
with:
input: ${{ inputs.key }}
options: -Rr
filter: |
@base64
- uses: envoyproxy/toolshed/gh-actions/github/mutex@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/github/mutex@actions-v0.2.1
if: ${{ inputs.lock-token && steps.cache-restore-initial.outputs.cache-hit != 'true' }}
with:
key: ${{ inputs.lock-id || steps.lock-id.outputs.value }}
Expand Down
2 changes: 1 addition & 1 deletion gh-actions/docker/cache/prime/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ outputs:
runs:
using: "composite"
steps:
- uses: envoyproxy/toolshed/gh-actions/cache/prime@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/cache/prime@actions-v0.2.1
id: prime
with:
key: ${{ inputs.image-tag }}
Expand Down
2 changes: 1 addition & 1 deletion gh-actions/docker/cache/restore/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: envoyproxy/toolshed/gh-actions/cache/restore@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/cache/restore@actions-v0.2.1
with:
key: ${{ inputs.image_tag }}
command: |
Expand Down
2 changes: 1 addition & 1 deletion gh-actions/docker/fetch/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ inputs:
runs:
using: "composite"
steps:
- uses: envoyproxy/toolshed/gh-actions/fetch@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/fetch@actions-v0.2.1
id: fetch
with:
url: ${{ inputs.url }}
Expand Down
8 changes: 4 additions & 4 deletions gh-actions/docker/shas/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@ outputs:
runs:
using: composite
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
id: yaml
with:
input: ${{ inputs.images }}
input-format: yaml
- uses: envoyproxy/toolshed/gh-actions/foreach@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/foreach@actions-v0.2.1
id: json_actions
with:
items: ${{ steps.yaml.outputs.value }}
steps: |
- uses: envoyproxy/toolshed/gh-actions/docker/sha@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/docker/sha@actions-v0.2.1
id: $KEY
with:
image: >-
%{{ fromJSON(inputs.context).items['$KEY'] }}
env_var: ${{ inputs.env_prefix }}_$KEY
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
id: images
with:
input: ${{ steps.json_actions.outputs.out }}
Expand Down
32 changes: 16 additions & 16 deletions gh-actions/envoy/ci/request/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,15 @@ runs:
steps:
## WARNING: INCOMING USER DATA IS A REQUEST ATTACK VECTOR AND SHOULD BE HANDLED ACCORDINGLY

- uses: envoyproxy/toolshed/gh-actions/github/context@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/github/context@actions-v0.2.1
name: Github context
if: ${{ fromJSON(env.CI_DEBUG || 'false') && true || false }}

# Pull request/targets are _never_ trusted.
#
# Only specified bots are trusted.
- id: trusted
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: |
${{ inputs.trusted-bots || 'NOBOTS' }}
Expand All @@ -87,7 +87,7 @@ runs:
| {trusted: ($trusted and ${{ ! startswith(github.event_name, 'pull_request') }})}
# Check current/requested config (currently only build-images can be overridden)
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.1
id: config-current-text
with:
title: fetch ${{ inputs.branch-name }}:${{ inputs.config-file }}
Expand All @@ -96,15 +96,15 @@ runs:
| "origin" as $remote
| "${{ inputs.branch-name }}" as $ref
| ("${{ inputs.template-script-ref-file }}" | bash::output)
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Current config
id: config
with:
print-result: ${{ fromJSON(env.CI_DEBUG || 'false') && true || false }}
input-format: yaml
input: ${{ steps.config-current-text.outputs.output }}
- id: build-images
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: ${{ steps.config.outputs.value }}
filter: |
Expand All @@ -115,7 +115,7 @@ runs:
| {default: "\($repo):\($tag)@sha256:\($sha)",
mobile: "\($repo)::mobile-\($tag)@sha256:\($mobileSha)"}
- id: requested-build-images
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input-format: yaml-path
input: ${{ inputs.config-file }}
Expand All @@ -129,7 +129,7 @@ runs:
"mobile": "\($repo):mobile-\($tag)@sha256:\($mobileSha)"}
# Check requested changes
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.1
id: diff
with:
title: git diff changes from ${{ inputs.merge-commit || 'HEAD^1' }}
Expand All @@ -138,7 +138,7 @@ runs:
| "origin" as $remote
| "${{ inputs.branch-name }}" as $ref
| ("${{ inputs.template-script-diff }}" | bash::output)
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
id: changed
with:
input: ${{ steps.diff.outputs.output }}
Expand All @@ -148,7 +148,7 @@ runs:
| split("\n")
# Check current/request versions
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Validate given version string
id: version-string
with:
Expand All @@ -158,7 +158,7 @@ runs:
filter: |
validate::version
- id: version
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: ${{ steps.changed.outputs.value || '[]' }}
filter: |
Expand All @@ -171,7 +171,7 @@ runs:
patch: (.[2] | rtrimstr("-dev") | fromjson),
"dev": $isdev,
"changed": $changed}
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.1
id: version-current-string
with:
title: fetch ${{ inputs.branch-name }}:${{ inputs.version-file }}
Expand All @@ -181,7 +181,7 @@ runs:
| "origin" as $remote
| ("${{ inputs.template-script-ref-file }}" | bash::output)
- id: version-current
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
options: -Rsc
filter: |
Expand All @@ -194,7 +194,7 @@ runs:
"dev": $isdev}
- id: request
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: |
actor: ${{ toJSON(github.actor) }}
Expand Down Expand Up @@ -240,19 +240,19 @@ runs:
- name: Run config
id: run-config
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input-format: yaml
input: ${{ toJSON(fromJSON(steps.config.outputs.value).run) }}
- uses: envoyproxy/toolshed/gh-actions/torun@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/torun@actions-v0.2.1
id: torun
with:
branch: ${{ inputs.branch-name }}
event: ${{ github.event_name }}
config: ${{ steps.run-config.outputs.value }}
paths: ${{ startswith(github.event_name, 'pull_request') && steps.changed.outputs.value || '[]' }}

- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Create data
id: data
with:
Expand Down
8 changes: 4 additions & 4 deletions gh-actions/envoy/run/summary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ inputs:
runs:
using: composite
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
if: ${{ fromJSON(env.CI_DEBUG || 'false') && true || false }}
with:
input: ${{ inputs.context }}
print-result: true
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Runtime information
id: run-info
with:
Expand All @@ -135,13 +135,13 @@ runs:
completed: .run.completed,
"run-time": "\(.run.completed - .run.started | . * 100 | round / 100)s",
"job-time": "\(.run.completed - .context["job-started"] | . * 100 | round / 100)s"}
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/json/table@actions-v0.2.1
name: Run information summary
id: run-summary
with:
json: ${{ steps.run-info.outputs.value }}
title: Runtime information
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: ${{ inputs.context }}
options: -r
Expand Down
8 changes: 4 additions & 4 deletions gh-actions/foreach/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ outputs:
runs:
using: composite
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Context
id: context
with:
input: ${{ inputs.context || '{}' }}
filter: |
${{ inputs.context-filter }}
| . * {"items": ${{ inputs.items }}}
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Steps (JSON)
id: steps-json
with:
input: ${{ inputs.steps }}
input-format: yaml
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Steps
id: steps-subs
with:
Expand All @@ -56,7 +56,7 @@ runs:
| map(.key as $k | $out | . + [($steps | walk(if type == "string" then sub("\\$KEY"; "\($k)") else . end))])
| flatten
- uses: envoyproxy/toolshed/gh-actions/using/steps@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/using/steps@actions-v0.2.1
id: steps
with:
name: ${{ inputs.name }}
Expand Down
6 changes: 3 additions & 3 deletions gh-actions/github/check/update/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ runs:
using: composite
steps:
# If the original check is already completed, we have been retested and we need to find the real one
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.1
name: Find check
if: ${{ fromJSON(inputs.data).status == 'completed' && github.run_attempt > 1 }}
id: current-checks
Expand All @@ -50,7 +50,7 @@ runs:
env:
GH_TOKEN: ${{ inputs.token }}
- name: Progress status check
uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/bson@actions-v0.2.1
with:
input: ${{ inputs.data }}
filter: |
Expand All @@ -70,7 +70,7 @@ runs:
| "${{ inputs.template-script-update }}"
env:
GH_TOKEN: ${{ inputs.token }}
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Print check response
id: checks
with:
Expand Down
10 changes: 5 additions & 5 deletions gh-actions/github/checkout/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ outputs:
runs:
using: composite
steps:
- uses: envoyproxy/toolshed/gh-actions/github/merge-commit@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/github/merge-commit@actions-v0.2.1
id: merge-commit
name: Fetch merge commit hash
if: ${{ inputs.pr && fromJSON(inputs.fetch-merge-commit) }}
Expand All @@ -58,7 +58,7 @@ runs:
# depth of the checked ancestor.
- name: Parse YAML config
id: parsed-config
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: ${{ inputs.config || '{}' }}
input-format: yaml
Expand Down Expand Up @@ -99,7 +99,7 @@ runs:
- name: Config
id: config-token
if: ${{ inputs.ssh-key == '' }}
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: ${{ inputs.token || github.token }}
options: -R
Expand All @@ -112,7 +112,7 @@ runs:
| del(.branch, .["requested-ref"])
- name: Config
id: config-ssh
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
if: ${{ inputs.ssh-key != '' }}
with:
input: ${{ inputs.ssh-key }}
Expand Down Expand Up @@ -148,7 +148,7 @@ runs:
COMMITTER_EMAIL: ${{ inputs.committer-email }}
shell: bash
- id: branch
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
with:
input: ${{ fromJSON(steps.parsed-config.outputs.value).branch }}
input-format: text
Expand Down
2 changes: 1 addition & 1 deletion gh-actions/github/command/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ outputs:
runs:
using: composite
steps:
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.0
- uses: envoyproxy/toolshed/gh-actions/jq@actions-v0.2.1
name: Parse command from text
id: command
with:
Expand Down
Loading

0 comments on commit 41191e7

Please sign in to comment.