Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 45862e9

Browse files
committed
ci: Only update the github ref for pull requests
On master, this fetch fails with: fatal: refusing to fetch into branch 'refs/heads/master' checked out at '/home/runner/work/libm/libm' Just skip the command when this shouldn't be needed.
1 parent 7419a5e commit 45862e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ jobs:
198198
fetch-depth: 100
199199
- name: Fetch pull request ref
200200
run: git fetch origin "$GITHUB_REF:$GITHUB_REF"
201+
if: github.event_name == 'pull_request'
201202
- run: python3 ci/calculate-exhaustive-matrix.py >> "$GITHUB_OUTPUT"
202203
id: script
203204

0 commit comments

Comments
 (0)