Skip to content

Commit 81ed642

Browse files
authored
Merge pull request #1025 from polywrap/origin-dev
fix: release-pr workflow use pull_request.head.ref
2 parents 386f2d1 + 1886596 commit 81ed642

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/release-pr.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Checkout
1515
uses: actions/checkout@v2
1616
with:
17-
ref: ${{ github.event.pull_request.base.ref }}
17+
ref: ${{ github.event.pull_request.head.ref }}
1818

1919
- name: Commenter Is Publisher?
2020
run: |
@@ -84,7 +84,7 @@ jobs:
8484
- name: Checkout
8585
uses: actions/checkout@v2
8686
with:
87-
ref: ${{ github.event.pull_request.base.ref }}
87+
ref: ${{ github.event.pull_request.head.ref }}
8888

8989
- name: Set env.BOT to Build Bot's Username
9090
run: echo BOT=polywrap-build-bot >> $GITHUB_ENV
@@ -143,7 +143,7 @@ jobs:
143143
token: ${{ secrets.POLYWRAP_BUILD_BOT_PAT }}
144144
push-to-fork: ${{env.BOT}}/${{github.event.repository.name}}
145145
branch: release/${{env.RELEASE_VERSION}}
146-
base: ${{ github.event.pull_request.base.ref }}
146+
base: ${{ github.event.pull_request.head.ref }}
147147
committer: GitHub <noreply@github.com>
148148
author: ${{env.BOT}} <${{env.BOT}}@users.noreply.github.com>
149149
commit-message: "${{env.RELEASE_VERSION}}"

0 commit comments

Comments
 (0)