Skip to content

Commit

Permalink
Checkout PR using gh
Browse files Browse the repository at this point in the history
  • Loading branch information
rvermeulen committed Sep 19, 2023
1 parent 2ca4a0c commit e654e0f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ jobs:
uses: actions/checkout@v4
with:
ref: rc/${{ inputs.version }}

- name: Checkout PR
env:
GITHUB_TOKEN: ${{ github.token }}
RELEASE_VERSION: ${{ inputs.version }}
run: |
pr_number=$(gh pr list --json number,title --jq "map(select(.title == \"Release v$RELEASE_VERSION\")) | .[].number")
gh pr checkout $pr_number
- name: Install Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit e654e0f

Please sign in to comment.