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:
parent
26cbc67385
commit
22c8bc9b9b
2 changed files with 3 additions and 3 deletions
2
.github/workflows/nix-test.yml
vendored
2
.github/workflows/nix-test.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue