Skip to content

Commit 5ca88a7

Browse files
committed
fetch prs and checkout
Signed-off-by: habibayassin <[email protected]>
1 parent cb7fa58 commit 5ca88a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
steps:
13-
- name: Git prep
14-
run: |
15-
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
16-
git fetch
1713
- name: Check out repository code recursively
1814
uses: actions/checkout@v3
1915
with:
2016
submodules: recursive
2117
fetch-depth: 0
22-
ref: ${{ github.event.client_payload.branch }}
18+
- name: Git prep
19+
run: |
20+
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
21+
git fetch
22+
git checkout ${{ github.event.client_payload.branch }}
2323
- uses: actions/setup-python@v4
2424
with:
2525
python-version: "3.10"

0 commit comments

Comments
 (0)