Skip to content

Commit

Permalink
ci: Use GITHUB_OUTPUT envvar instead of set-output command (#403)
Browse files Browse the repository at this point in the history
Co-authored-by: Sophie Wigmore <[email protected]>
  • Loading branch information
arunsathiya and Sophie Wigmore authored Jan 12, 2024
1 parent 6bb0a63 commit bf42569
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/approve-bot-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ jobs:
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
- id: pr-data
run: |
echo "::set-output name=author::$(cat event.json | jq -r '.pull_request.user.login')"
echo "::set-output name=number::$(cat event.json | jq -r '.pull_request.number')"
echo "author=$(cat event.json | jq -r '.pull_request.user.login')" >> $GITHUB_OUTPUT
echo "number=$(cat event.json | jq -r '.pull_request.number')" >> $GITHUB_OUTPUT
approve:
name: Approve Bot PRs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
--header "Authorization: token ${GITHUB_TOKEN}"
)"
echo "::set-output name=mergeable_state::$(echo "${payload}" | jq -r -c .mergeable_state)"
echo "mergeable_state=$(echo "${payload}" | jq -r -c .mergeable_state)" >> $GITHUB_OUTPUT
- name: Merge
if: ${{ steps.pull_request.outputs.mergeable_state == 'clean' || steps.pull_request.outputs.mergeable_state == 'unstable' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
if [ -z "${tag}" ]; then
tag="${{ steps.increment.outputs.tag }}"
fi
echo "::set-output name=tag::${tag}"
echo "tag=${tag}" >> $GITHUB_OUTPUT
- name: Package Bootstrapper
run : ./scripts/package.sh --version ${{ steps.tag.outputs.tag }}
- name: Create Draft Release
Expand Down

0 comments on commit bf42569

Please sign in to comment.