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

Replace set-output with new GITHUB_OUTPUT format #14

Merged
merged 1 commit into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
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
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