diff options
| author | Albert O'Shea <[email protected]> | 2025-11-28 03:05:51 +1100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-11-27 10:05:51 -0600 |
| commit | ea7c213f5d3d09bcc390ccf678b282645c35311f (patch) | |
| tree | c2645f9814b6ebd62401a0e7fcd7659733e92956 /.github/workflows | |
| parent | 70dd6dd3945d2b991de91c12c7434cd0ddb03a01 (diff) | |
| download | opencode-ea7c213f5d3d09bcc390ccf678b282645c35311f.tar.gz opencode-ea7c213f5d3d09bcc390ccf678b282645c35311f.zip | |
nix: fix workflow failing on PRs (#4820)
Co-authored-by: Github Action <[email protected]>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/update-nix-hashes.yml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/.github/workflows/update-nix-hashes.yml b/.github/workflows/update-nix-hashes.yml index 38dba2e35..1f1ca0e80 100644 --- a/.github/workflows/update-nix-hashes.yml +++ b/.github/workflows/update-nix-hashes.yml @@ -18,6 +18,7 @@ on: jobs: update: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest env: SYSTEM: x86_64-linux @@ -29,6 +30,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 ref: ${{ github.head_ref || github.ref_name }} + repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} - name: Setup Nix uses: DeterminateSystems/nix-installer-action@v20 |
