Skip to content

Commit 18e4196

Browse files
committed
Checkout PR using gh
1 parent 2943dee commit 18e4196

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/post-release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ jobs:
1616
uses: actions/checkout@v4
1717
with:
1818
ref: rc/${{ inputs.version }}
19+
20+
- name: Checkout PR
21+
env:
22+
GITHUB_TOKEN: ${{ github.token }}
23+
RELEASE_VERSION: ${{ inputs.version }}
24+
run: |
25+
pr_number=$(gh pr list --json number,title --jq "map(select(.title == \"Release v$RELEASE_VERSION\")) | .[].number")
26+
gh pr checkout $pr_number
27+
1928
- name: Install Python
2029
uses: actions/setup-python@v4
2130
with:

0 commit comments

Comments
 (0)