Skip to content

Commit

Permalink
Don't run the "trusted" checks if we're in a PR (#85)
Browse files Browse the repository at this point in the history
* Don't run the "trusted" checks if we're in a PR

* Apply suggestions from code review

* Update ci.yml

* Update ci.yml
  • Loading branch information
grahamc authored Sep 9, 2024
1 parent 9d627e8 commit 538f029
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: CI

on:
merge_group:
pull_request:
push:
branches: [main]
Expand Down Expand Up @@ -95,16 +96,20 @@ jobs:
runner: "ubuntu-22.04"
steps:
- uses: actions/checkout@v4
if: github.event_name == 'merge_group'
- name: Install Nix on ${{ matrix.systems.nix-system }} system
if: github.event_name == 'merge_group'
uses: DeterminateSystems/nix-installer-action@main
with:
flakehub: true
extra-conf: |
narinfo-cache-negative-ttl = 0
- name: Cache the store
if: github.event_name == 'merge_group'
uses: ./
with:
_internal-strict-mode: true
- name: Check the cache for liveness
if: github.event_name == 'merge_group'
run: |
.github/workflows/cache-test.sh

0 comments on commit 538f029

Please sign in to comment.