Skip to content

Commit

Permalink
CI: clarify Nix CI jobs; disable on forked repositories
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAShelf committed Aug 31, 2024
1 parent 76b82fd commit 3e59edf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Nix (Build)

on:
workflow_call:
secrets:
Expand Down Expand Up @@ -25,6 +27,6 @@ jobs:
- uses: cachix/cachix-action@v15
with:
name: hyprland
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"

- run: nix build '.?submodules=1#${{ matrix.package }}' -L --extra-substituters "https://hyprland.cachix.org"
4 changes: 2 additions & 2 deletions .github/workflows/nix-ci.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Nix
name: Nix (CI)

on: [push, pull_request, workflow_dispatch]

jobs:
update-inputs:
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
uses: ./.github/workflows/nix-update-inputs.yml
secrets: inherit

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/nix-update-inputs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Nix
name: Nix (Update Inputs)

on:
workflow_call:
Expand All @@ -8,6 +8,7 @@ on:

jobs:
update:
if: github.repository == 'hyprwm/Hyprland'
name: inputs
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 3e59edf

Please sign in to comment.