Skip to content

Commit 22c2004

Browse files
author
Drew Yang
committed
fix: 🐛 update PR logic
1 parent 137d445 commit 22c2004

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/post_release.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ jobs:
4040
git push origin $BRANCH_NAME
4141
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_ENV
4242
echo "VERSION=$VERSION" >> $GITHUB_ENV
43-
# - name: Create Pull Request
44-
# uses: peter-evans/create-pull-request@v6
45-
# with:
46-
# token: ${{ secrets.GITHUB_TOKEN }}
47-
# branch: ${{ env.BRANCH_NAME }}
48-
# title: "Update version.py to ${{ github.event.release.name }}"
49-
# body: "This PR updates `version.py` to match the latest release: ${{ github.event.release.name }}"
50-
# base: master
43+
- name: Create Pull Request
44+
run: |
45+
gh pr create \
46+
--title "[github-actions]Update version.py to ${{ github.event.release.name }}" \
47+
--body "This PR updates \`version.py\` to match the latest release: ${{ github.event.release.name }}" \
48+
--base master \
49+
--head ${{ env.BRANCH_NAME }} \
50+
--reviewer yambottle
5151
slack-notification:
5252
runs-on: ubuntu-latest
5353
steps:

0 commit comments

Comments
 (0)