Skip to content

Commit 9ff9f10

Browse files
committed
Disable PR events from triggering CI
1 parent 5c5ad8d commit 9ff9f10

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ name: Continuous Integration
1010
on:
1111
pull_request:
1212
branches: ['**', '!update/**', '!pr/**']
13-
types: []
13+
types: [locked]
1414
push:
1515
branches: ['**', '!update/**', '!pr/**']
1616
tags: [v*]

build.sbt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ ThisBuild / githubWorkflowBuild := {
6363
}
6464
}
6565
// Disable running CI for Pull Requests (a normal push already triggers CI)
66-
ThisBuild / githubWorkflowPREventTypes := Seq.empty
66+
// We set an uncommon status instead of empty because passing an empty list seems to make
67+
// GHA use the default trigger event types..
68+
ThisBuild / githubWorkflowPREventTypes := Seq(PREventType.Locked)
6769
ThisBuild / githubWorkflowBuildPostamble ++= Seq(
6870
WorkflowStep.Sbt(
6971
commands = List("checkGitNoUncommittedChanges"),

0 commit comments

Comments
 (0)