mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-06-29 02:05:44 +02:00
Clean up unneeded flake-check duplication
The cachix action already only pushes from protected branches, based on the presence of the auth token.
This commit is contained in:
parent
e9456a0e30
commit
536f0311cf
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -1,4 +1,5 @@
|
|||||||
name: check and push
|
# CI that runs on pull requests and pushes to master.
|
||||||
|
name: CI
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@ -11,29 +12,14 @@ jobs:
|
|||||||
stack-test:
|
stack-test:
|
||||||
uses: ./.github/workflows/stack-test.yml
|
uses: ./.github/workflows/stack-test.yml
|
||||||
|
|
||||||
flake-no-push:
|
flake-check:
|
||||||
name: flake check (no push)
|
|
||||||
if: github.event_name != 'push'
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: cachix/install-nix-action@v31
|
|
||||||
- uses: cachix/cachix-action@v15
|
|
||||||
with:
|
|
||||||
name: stackage-infrastructure
|
|
||||||
- run: nix build
|
|
||||||
- run: nix flake check
|
|
||||||
|
|
||||||
flake-push:
|
|
||||||
name: flake check and push
|
name: flake check and push
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v6
|
||||||
- uses: cachix/install-nix-action@v31
|
- uses: cachix/install-nix-action@v31
|
||||||
- uses: cachix/cachix-action@v15
|
- uses: DeterminateSystems/magic-nix-cache-action@v13
|
||||||
with:
|
- uses: cachix/cachix-action@v17
|
||||||
name: stackage-infrastructure
|
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
||||||
- run: nix build
|
- run: nix build
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user