Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(gh-actions): remove obsolete set-output #433

Merged
merged 1 commit into from
Nov 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ jobs:
name: "Generate matrix"
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
MATRIX: ${{ steps.set-matrix.outputs.MATRIX }}
steps:
- name: Get Matrix Builds
id: set-matrix
Expand Down Expand Up @@ -148,20 +148,20 @@ jobs:
done

jq --compact-output --null-input '$ARGS.positional' --args "${BUILDS_MATRIX[@]}"
echo "::set-output name=matrix::$( jq --compact-output --null-input '$ARGS.positional' --args "${BUILDS_MATRIX[@]}" )"
echo "MATRIX=$( jq --compact-output --null-input '$ARGS.positional' --args "${BUILDS_MATRIX[@]}" )" | tee -a "${GITHUB_OUTPUT}"

build-boxes:
name: "*"
runs-on: macos-10.15
needs: generate-matrix
if: ${{ needs.generate-matrix.outputs.matrix != '[]' && needs.generate-matrix.outputs.matrix != '' }}
if: ${{ needs.generate-matrix.outputs.MATRIX != '[]' && needs.generate-matrix.outputs.MATRIX != '' }}
concurrency:
group: build-boxes-${{ matrix.stage }}
strategy:
# Do not cancel matrix jobs if one of them fails
fail-fast: false
matrix:
stage: ${{ fromJSON(needs.generate-matrix.outputs.matrix) }}
stage: ${{ fromJSON(needs.generate-matrix.outputs.MATRIX) }}

steps:
- name: Set PACKER_LOG, ANSIBLE_DEBUG, VAGRANT_LOG variables when using workflow_dispatch
Expand Down