Skip to content

Commit f919dff

Browse files
committed
Fix builds for PRs
1 parent 369a473 commit f919dff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/linux_builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Wait for static checks
2323
uses: lewagon/wait-on-check-action@v1.3.1
2424
with:
25-
ref: ${{ github.ref }}
25+
ref: ${{ github.event_name != 'pull_request' && github.sha || github.event.pull_request.head.sha }}
2626
check-name: 'Static Checks (clang-format, black format, file format, documentation checks)'
2727
repo-token: ${{ secrets.GITHUB_TOKEN }}
2828
wait-interval: 10

.github/workflows/windows_builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Wait for static checks
2626
uses: lewagon/wait-on-check-action@v1.3.1
2727
with:
28-
ref: ${{ github.ref }}
28+
ref: ${{ github.event_name != 'pull_request' && github.sha || github.event.pull_request.head.sha }}
2929
check-name: 'Static Checks (clang-format, black format, file format, documentation checks)'
3030
repo-token: ${{ secrets.GITHUB_TOKEN }}
3131
wait-interval: 10

0 commit comments

Comments
 (0)