Skip to content

Commit

Permalink
Added a simple condition on the label checker
Browse files Browse the repository at this point in the history
  • Loading branch information
domaspoliakas committed Jul 28, 2023
1 parent 13a6f2a commit 36718c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ jobs:

check-labels:
name: Check Labels
if: github.event_name == 'pull_request'
strategy:
matrix:
os: [ubuntu-latest]
Expand Down
6 changes: 3 additions & 3 deletions core/src/main/scala/precog/SbtPrecogBase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ abstract class SbtPrecogBase extends AutoPlugin {
params = Map(
"one_of" -> "version: breaking,version: feature,version: revision,version: release",
"none_of" -> ":stop_sign:",
"repo_token" -> "${{ env.GITHUB_TOKEN }}"
"repo_token" -> s"$${{ env.GITHUB_TOKEN }}"
)
)
),
// cond = Some(
// "github.event_name == 'pull_request' && !github.event.pull_request.draft && contains([\"main\", \"master\"], github.base_ref)"),
cond = Some("github.event_name == 'pull_request'")
// && !github.event.pull_request.draft && contains([\"main\", \"master\"], github.base_ref)"),
// needs = List("build"),
// scalas = List(scalaVersion.value)
),
Expand Down

0 comments on commit 36718c1

Please sign in to comment.