mirror of
https://github.com/DeterminateSystems/magic-nix-cache-action.git
synced 2024-12-26 01:12:17 +01:00
Don't run the "trusted" checks if we're in a PR (#85)
* Don't run the "trusted" checks if we're in a PR * Apply suggestions from code review * Update ci.yml * Update ci.yml
This commit is contained in:
parent
9d627e84ff
commit
538f0296e2
1 changed files with 5 additions and 0 deletions
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
|
@ -1,6 +1,7 @@
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
merge_group:
|
||||||
pull_request:
|
pull_request:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
@ -95,16 +96,20 @@ jobs:
|
||||||
runner: "ubuntu-22.04"
|
runner: "ubuntu-22.04"
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
- name: Install Nix on ${{ matrix.systems.nix-system }} system
|
- name: Install Nix on ${{ matrix.systems.nix-system }} system
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
uses: DeterminateSystems/nix-installer-action@main
|
uses: DeterminateSystems/nix-installer-action@main
|
||||||
with:
|
with:
|
||||||
flakehub: true
|
flakehub: true
|
||||||
extra-conf: |
|
extra-conf: |
|
||||||
narinfo-cache-negative-ttl = 0
|
narinfo-cache-negative-ttl = 0
|
||||||
- name: Cache the store
|
- name: Cache the store
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
_internal-strict-mode: true
|
_internal-strict-mode: true
|
||||||
- name: Check the cache for liveness
|
- name: Check the cache for liveness
|
||||||
|
if: github.event_name == 'merge_group'
|
||||||
run: |
|
run: |
|
||||||
.github/workflows/cache-test.sh
|
.github/workflows/cache-test.sh
|
||||||
|
|
Loading…
Reference in a new issue