Skip to content

Commit 4506dd0

Browse files
authored
Merge pull request #2187 from habibayassin/pr-update-rules
GHA: checkout pr update rules
2 parents 1a764f2 + 0870faf commit 4506dd0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ jobs:
1919
with:
2020
submodules: recursive
2121
fetch-depth: 0
22-
ref: ${{ github.event.client_payload.branch }}
22+
- name: Git prep
23+
run: |
24+
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
25+
git fetch
26+
git checkout ${{ github.event.client_payload.branch }}
2327
- uses: actions/setup-python@v4
2428
with:
2529
python-version: "3.10"

0 commit comments

Comments
 (0)