From 22c8bc9b9b59aecfbdb595bb228a0176ce02f810 Mon Sep 17 00:00:00 2001 From: Nikolai Nechaev Date: Sun, 21 Sep 2025 22:07:41 +0900 Subject: 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. --- .github/workflows/nix-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.github/workflows/nix-test.yml') 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 -- cgit v1.2.3