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.
This commit is contained in:
Nikolai Nechaev 2025-09-21 22:07:41 +09:00 committed by Mihai Fufezan
parent 26cbc67385
commit 22c8bc9b9b
2 changed files with 3 additions and 3 deletions

View file

@ -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