Skip to content

Commit

Permalink
Added mergify
Browse files Browse the repository at this point in the history
  • Loading branch information
hnaderi committed Apr 22, 2024
1 parent 31e0c4f commit 5210a51
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 2 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-latest
- macos-11
- macos-12
- windows-2022
Expand Down Expand Up @@ -222,3 +222,16 @@ jobs:
- name: Publish
run: sbt '++ ${{ matrix.scala }}' tlRelease

post-build:
name: post build
needs: [build]
strategy:
matrix:
os: [ubuntu-latest]
scala: []
java: []
runs-on: ${{ matrix.os }}
steps:
- name: post build
run: echo success!
12 changes: 12 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
pull_request_rules:
- name: Automatic merge for dependency updates
conditions:
- "head~=update/"
- "status-success=post build (ubuntu-latest)"

- or:
- "author=hnaderi"
- "author=scala-steward"
actions:
merge:
method: squash
15 changes: 14 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,20 @@ val Scala213 = "2.13.12"
ThisBuild / crossScalaVersions := Seq(Scala213, "3.3.3")
ThisBuild / scalaVersion := Scala213
ThisBuild / githubWorkflowOSes :=
Seq("ubuntu-20.04", "ubuntu-22.04", "macos-11", "macos-12", "windows-2022")
Seq("ubuntu-20.04", "ubuntu-latest", "macos-11", "macos-12", "windows-2022")
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
)

lazy val root = tlCrossRootProject.aggregate(lib, example)

Expand Down

0 comments on commit 5210a51

Please sign in to comment.