Skip to content

Commit 08316a4

Browse files
committed
only run n i x on push events and if the word is in the commit message
1 parent cde1454 commit 08316a4

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/nix-action-coq-8.16-macos.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
jobs:
22
coq:
33
needs: []
4+
if: ${{ contains(github.event.head_commit.message, 'nix') }}
45
runs-on: macos-latest
56
concurrency:
67
group: ${{ github.workflow }}-MacOS-coq-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
@@ -173,14 +174,8 @@ jobs:
173174
--argstr job "metacoq"
174175
name: Nix CI for bundle coq-8.16
175176
'on':
176-
pull_request:
177-
paths:
178-
- .github/workflows/**
179177
pull_request_target:
180-
types:
181-
- opened
182-
- synchronize
183-
- reopened
178+
types: []
184179
push:
185180
branches:
186181
- master

.github/workflows/nix-action-coq-8.16-ubuntu.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
jobs:
22
coq:
33
needs: []
4+
if: ${{ contains(github.event.head_commit.message, 'nix') }}
45
runs-on: ubuntu-latest
56
concurrency:
67
group: ${{ github.workflow }}-Ubuntu-coq-${{ github.event_name }}-${{ github.head_ref || github.run_id }}
@@ -173,14 +174,8 @@ jobs:
173174
--argstr job "metacoq"
174175
name: Nix CI for bundle coq-8.16
175176
'on':
176-
pull_request:
177-
paths:
178-
- .github/workflows/**
179177
pull_request_target:
180-
types:
181-
- opened
182-
- synchronize
183-
- reopened
178+
types: []
184179
push:
185180
branches:
186181
- master

0 commit comments

Comments
 (0)