summaryrefslogtreecommitdiff
path: root/.github/workflows/nix-test.yml
diff options
context:
space:
mode:
authorNikolai Nechaev <Nikolay_Nechaev@mail.ru>2025-09-21 22:07:41 +0900
committerMihai Fufezan <mihai@fufexan.net>2025-09-22 12:30:39 +0300
commit22c8bc9b9b59aecfbdb595bb228a0176ce02f810 (patch)
treed9ffadcae2e20cd0e2e3fb218777dbcc7418af05 /.github/workflows/nix-test.yml
parent26cbc67385d95ba621fe0a125a5b121ffdd09335 (diff)
CI/Nix: Allow running CI in forks
Rather than hardcoding the repository name in the workflow file, use a context value. This allows running workflows in forks.
Diffstat (limited to '.github/workflows/nix-test.yml')
-rw-r--r--.github/workflows/nix-test.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/nix-test.yml b/.github/workflows/nix-test.yml
index a4e32b56..086f0077 100644
--- a/.github/workflows/nix-test.yml
+++ b/.github/workflows/nix-test.yml
@@ -46,7 +46,7 @@ jobs:
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Run test VM
- run: nix build 'github:hyprwm/Hyprland?ref=${{ github.ref }}#checks.x86_64-linux.tests' -L --extra-substituters "https://hyprland.cachix.org"
+ run: nix build 'github:${{ github.repository }}?ref=${{ github.ref }}#checks.x86_64-linux.tests' -L --extra-substituters "https://hyprland.cachix.org"
- name: Check exit status
run: grep 0 result/exit_status