Skip to content

Commit

Permalink
Merge pull request #4617 from onflow/petera/gha-tools-print-inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
peterargue authored Aug 11, 2023
2 parents 96a93b2 + e020c36 commit cc67154
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ jobs:
outputs:
matrix: ${{ steps.generate.outputs.matrix }}
steps:
- name: Print all input variables
run: echo '${{ toJson(inputs) }}' | jq

- id: generate
run: |
roles=()
Expand All @@ -74,6 +77,7 @@ jobs:
fi
rolesJSON=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${roles[@]}")
echo "matrix={\"role\":$(echo $rolesJSON)}" >> $GITHUB_OUTPUT
docker-push:
name: ${{ matrix.role }} images
runs-on: ubuntu-latest
Expand All @@ -89,10 +93,12 @@ jobs:
uses: actions/setup-go@v2
with:
go-version: '1.19'

- name: Checkout repo
uses: actions/checkout@v2
with:
ref: ${{ inputs.tag }}

# Provide Google Service Account credentials to Github Action, allowing interaction with the Google Container Registry
# Logging in as [email protected]
- name: Docker login
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
name: Build boot tools
runs-on: ubuntu-latest
steps:
- name: Print all input variables
run: echo '${{ toJson(inputs) }}' | jq
- id: auth
uses: google-github-actions/auth@v1
with:
Expand Down

0 comments on commit cc67154

Please sign in to comment.