Skip to content

Commit

Permalink
update set output syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
aerlaut committed Apr 13, 2023
1 parent c0bd493 commit c0c86ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
echo "Unchecked PR body"
echo $UNCHECKED_BODY
echo "::set-output name=body::$UNCHECKED_BODY"
echo "{body}={$UNCHECKED_BODY} >> $GITHUB_OUTPUT"
- id: uncheck-integration-checkbox
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/pr_validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,19 +60,19 @@ jobs:
echo "Is staging N/A?"
echo $IS_STAGING_NA
echo "::set-output name=is-staging-na::$IS_STAGING_NA"
echo "{is-staging-na}={$IS_STAGING_NA} >> $GITHUB_OUTPUT"
echo "Full URL:"
echo $URL
echo "::set-output name=url::$URL"
echo "{url}={$URL} >> $GITHUB_OUTPUT"
SANDBOX=$(pcregrep -o2 -M "$REGEX" <<\EOF
${{ github.event.pull_request.body }}
EOF
)
echo "Extracted sandbox:"
echo $SANDBOX
echo "::set-output name=sandbox::$SANDBOX"
echo "{sandbox}={$SANDBOX} >> $GITHUB_OUTPUT"
- id: reach-staging
if: steps.extract-staging.outputs.url != 'N/A'
Expand Down Expand Up @@ -122,8 +122,8 @@ jobs:
fi
echo $SHOULD_RUN_E2E
echo "::set-output name=should-e2e-cancel::$SHOULD_CANCEL_E2E"
echo "::set-output name=should-e2e-run::$SHOULD_RUN_E2E"
echo "{should-e2e-cancel}={$SHOULD_CANCEL_E2E} >> $GITHUB_OUTPUT"
echo "{should-e2e-run}={$SHOULD_RUN_E2E} >> $GITHUB_OUTPUT"
- id: cancel
name: Cancel if staging is not N/A and box is not checked
Expand All @@ -143,12 +143,12 @@ jobs:
run: |-
echo "SHA of latest GitHub branch commit:"
echo ${{ github.event.pull_request.head.sha }}
echo "::set-output name=github_sha::${{ github.event.pull_request.head.sha }}"
echo "{github_sha}={${{ github.event.pull_request.head.sha }}} >> $GITHUB_OUTPUT"
REPO_NAME=$(echo $GITHUB_REPOSITORY | awk -F '/' '{print $2}')
echo "Repo name:"
echo $REPO_NAME
echo "::set-output name=repo_name::$REPO_NAME"
echo "{repo_name}={$REPO_NAME} >> $GITHUB_OUTPUT"
- id: extract-integration-test-ref
if: steps.check-e2e-run.outputs.should-e2e-run == 'true'
Expand All @@ -166,7 +166,7 @@ jobs:
)
echo "Ref given is $INTEGRATION_TEST_REF, setting it as is."
echo "::set-output name=ref::$INTEGRATION_TEST_REF"
echo "{ref}={$INTEGRATION_TEST_REF} >> $GITHUB_OUTPUT"
- id: run-integration-test
if: steps.check-e2e-run.outputs.should-e2e-run == 'true'
Expand Down Expand Up @@ -202,7 +202,7 @@ jobs:
echo "Unchecked PR body"
echo $UNCHECKED_BODY
echo "::set-output name=body::$UNCHECKED_BODY"
echo "{body}={$UNCHECKED_BODY} >> $GITHUB_OUTPUT"
- id: uncheck-integration-checkbox
if: failure()
Expand Down

0 comments on commit c0c86ed

Please sign in to comment.