Skip to content

Commit

Permalink
ci: use gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvander committed Apr 24, 2024
1 parent e806def commit 0d37483
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,11 @@ jobs:
TAG=${{ steps.release.outputs.tag_name }}
gh release upload ${{ steps.release.outputs.tag_name }} .out/$TAG/*
gh release edit ${{ steps.release.outputs.tag_name }} -t ${{ steps.release.outputs.tag_name }}
gh pr merge --auto
- name: Approve PR
uses: hmarr/auto-approve-action@v4
if: ${{ steps.release.outputs.prs_created == 'true' }}
with:
github-token: ${{ secrets.PAT_TOKEN }}
pull-request-number: ${{ fromJSON(steps.release.outputs.pr).number }}
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
PR_NUMBER: ${{ fromJSON(steps.release.outputs.pr).number }}
run:
gh pr merge -m $PR_NUMBER

0 comments on commit 0d37483

Please sign in to comment.