Skip to content

Commit cc67de3

Browse files
committed
use pr id
Signed-off-by: habibayassin <[email protected]>
1 parent ed18e5a commit cc67de3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/github-actions-update-rules.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
run: |
1919
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
2020
git fetch
21-
git checkout ${{ github.event.client_payload.branch }}
21+
git checkout "origin/pr/${{ github.event.client_payload.branch }}"
2222
- uses: actions/setup-python@v4
2323
with:
2424
python-version: "3.10"
@@ -53,7 +53,7 @@ jobs:
5353
name: update rules pr
5454
id: remote-update-pr
5555
run: |
56-
git push origin ${{ github.event.client_payload.branch }}
56+
git push origin "refs/pull/${{ github.event.client_payload.branch }}/head"
5757
- if: "steps.remote-update.outputs.has_update == 'true' && github.event.client_payload.branch == 'master'"
5858
name: Create Draft PR
5959
uses: peter-evans/create-pull-request@v5

0 commit comments

Comments
 (0)