Skip to content

Commit

Permalink
Improved condition for mergify
Browse files Browse the repository at this point in the history
  • Loading branch information
hnaderi committed Feb 3, 2024
1 parent 86b5ef5 commit 2ff36e0
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,17 @@ jobs:
modules-ignore: rootjs_3 rootjs_2.13 rootjs_2.12 docs_3 docs_2.13 docs_2.12 yaml4s-tests_sjs1_3 yaml4s-tests_sjs1_2.13 yaml4s-tests_sjs1_2.12 rootjvm_3 rootjvm_2.13 rootjvm_2.12 rootnative_3 rootnative_2.13 rootnative_2.12 yaml4s-tests_3 yaml4s-tests_2.13 yaml4s-tests_2.12 yaml4s-tests_native0.4_3 yaml4s-tests_native0.4_2.13 yaml4s-tests_native0.4_2.12
configs-ignore: test scala-tool scala-doc-tool test-internal

post-build:
name: post build
needs: [build]
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- name: post build
run: echo success!

site:
name: Generate Site
strategy:
Expand Down
2 changes: 2 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ pull_request_rules:
- name: Automatic merge for dependency updates
conditions:
- "head~=update/"
- "status-success=post build (ubuntu-latest)"

- or:
- "author=hnaderi"
- "author=scala-steward"
Expand Down
14 changes: 14 additions & 0 deletions workflows.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ ThisBuild / githubWorkflowJobSetup ++= Seq(
)
)

ThisBuild / githubWorkflowAddedJobs += WorkflowJob(
id = "post-build",
name = "post build",
needs = List("build"),
steps = List(
WorkflowStep.Run(
commands = List("echo success!"),
name = Some("post build")
)
),
scalas = Nil,
javas = Nil
)

// NOTE apparently githubWorkflowCheck does not work as intended on windows
// due to file separator differences
ThisBuild / githubWorkflowGeneratedCI ~= {
Expand Down

0 comments on commit 2ff36e0

Please sign in to comment.