diff options
author | NotAShelf <[email protected]> | 2024-08-31 13:51:19 +0300 |
---|---|---|
committer | Mihai Fufezan <[email protected]> | 2024-08-31 17:17:36 +0300 |
commit | 10d7219807dd726d231e8df53a357018f5526432 (patch) | |
tree | c8575a68e7f373dd5eb0cb676af5290859e67375 /.github | |
parent | 838ed87d6ffae0dbdc8a3ecaac2c8be006f6d053 (diff) | |
download | Hyprland-10d7219807dd726d231e8df53a357018f5526432.tar.gz Hyprland-10d7219807dd726d231e8df53a357018f5526432.zip |
CI: clarify Nix CI jobs; disable on forked repositories
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/nix-build.yml | 4 | ||||
-rw-r--r-- | .github/workflows/nix-ci.yml | 4 | ||||
-rw-r--r-- | .github/workflows/nix-update-inputs.yml | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/.github/workflows/nix-build.yml b/.github/workflows/nix-build.yml index d0234498..ed0c2ae1 100644 --- a/.github/workflows/nix-build.yml +++ b/.github/workflows/nix-build.yml @@ -1,3 +1,5 @@ +name: Nix (Build) + on: workflow_call: secrets: @@ -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" diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml index b25ed9aa..2f35337d 100644 --- a/.github/workflows/nix-ci.yml +++ b/.github/workflows/nix-ci.yml @@ -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 diff --git a/.github/workflows/nix-update-inputs.yml b/.github/workflows/nix-update-inputs.yml index 000900d9..a8f68f3b 100644 --- a/.github/workflows/nix-update-inputs.yml +++ b/.github/workflows/nix-update-inputs.yml @@ -1,4 +1,4 @@ -name: Nix +name: Nix (Update Inputs) on: workflow_call: @@ -8,6 +8,7 @@ on: jobs: update: + if: github.repository == 'hyprwm/Hyprland' name: inputs runs-on: ubuntu-latest steps: |