Skip to content

Commit

Permalink
Replace set-output with new GITHUB_OUTPUT format
Browse files Browse the repository at this point in the history
  • Loading branch information
vsingh18567 committed Oct 5, 2023
1 parent 3e595cc commit 4b901c4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
export RELEASE_NAME=${REPOSITORY#*/}
# Export RELEASE_NAME as an output
echo "::set-output name=RELEASE_NAME::$RELEASE_NAME"
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_OUTPUT
yarn build
env:
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/feature-branch-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
- name: Get Pull Request Metadata
id: pr
run: |-
echo "::set-output name=pull_request_number::$(gh pr view --json number -q .number || echo "")"
echo "::set-output name=pull_request_closed::$(gh pr view --json closed -q .closed || echo "")"
export PULL_REQUEST_NUMBER=$(gh pr view --json number -q .number || echo "")
export PULL_REQUEST_CLOSED=$(gh pr view --json closed -q .closed || echo "")
echo "pull_request_number=$PULL_REQUEST_NUMBER" >> $GITHUB_OUTPUT
echo "pull_request_closed=$PULL_REQUEST_CLOSED" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: synth
Expand All @@ -41,7 +43,7 @@ jobs:
export RELEASE_NAME=${REPOSITORY#*/}-pr-${{ steps.pr.outputs.pull_request_number }}
# Export RELEASE_NAME as an output
echo "::set-output name=RELEASE_NAME::$RELEASE_NAME"
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_OUTPUT
yarn build
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/feature-branch-nuke.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
export DEPLOY_TO_FEATURE_BRANCH=true
export RELEASE_NAME=${REPOSITORY#*/}-pr-$PR_NUMBER
# Export RELEASE_NAME as an output
echo "::set-output name=RELEASE_NAME::$RELEASE_NAME"
echo "RELEASE_NAME=$RELEASE_NAME" >> $GITHUB_OUTPUT
yarn build
env:
PR_NUMBER: ${{ inputs.prNumber }}
Expand Down

0 comments on commit 4b901c4

Please sign in to comment.