Skip to content

Commit ea7c213

Browse files
Alb-Oactions-user
andauthored
nix: fix workflow failing on PRs (anomalyco#4820)
Co-authored-by: Github Action <action@github.com>
1 parent 70dd6dd commit ea7c213

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/update-nix-hashes.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818

1919
jobs:
2020
update:
21+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
2122
runs-on: ubuntu-latest
2223
env:
2324
SYSTEM: x86_64-linux
@@ -29,6 +30,7 @@ jobs:
2930
token: ${{ secrets.GITHUB_TOKEN }}
3031
fetch-depth: 0
3132
ref: ${{ github.head_ref || github.ref_name }}
33+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
3234

3335
- name: Setup Nix
3436
uses: DeterminateSystems/nix-installer-action@v20

flake.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)