mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 17:44:07 +02:00
run private cache test only when secret is present
This commit is contained in:
parent
13c6d228be
commit
448ed60298
1 changed files with 3 additions and 0 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
|
@ -2,6 +2,8 @@ name: "cachix-action test"
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
public-cache:
|
public-cache:
|
||||||
|
|
@ -40,6 +42,7 @@ jobs:
|
||||||
- run: nix-build test.nix
|
- run: nix-build test.nix
|
||||||
|
|
||||||
private-cache:
|
private-cache:
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue