From a4acd55cb0251dbe3ddad859be6790824f743cda Mon Sep 17 00:00:00 2001 From: Jules Ivanic Date: Fri, 13 Jan 2023 13:38:56 +0800 Subject: [PATCH] Fix release process (#125) * Fix release process * Update logback-classic * Add scala-steward config --- .github/workflows/release.yml | 2 +- .github/workflows/scala-steward.yml | 27 +++++++++++++++++++++++++++ build.sbt | 2 +- project/plugins.sbt | 8 ++++---- 4 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/scala-steward.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d645d3c5f..c54ef594b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: types: [ published ] jobs: - test: + tests: runs-on: ubuntu-latest env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/scala-steward.yml b/.github/workflows/scala-steward.yml new file mode 100644 index 000000000..9c1b10e3a --- /dev/null +++ b/.github/workflows/scala-steward.yml @@ -0,0 +1,27 @@ +name: Launch Scala Steward + +# This workflow will launch everyday at 00:00 +on: + schedule: + - cron: '0 0 * * 1-5' + workflow_dispatch: {} + +jobs: + scala-steward: + timeout-minutes: 45 + runs-on: ubuntu-latest + env: + GH_READ_PACKAGES: ${{ secrets.GH_READ_PACKAGES }} + name: Launch Scala Steward + steps: + - name: Launch Scala Steward + uses: scala-steward-org/scala-steward-action@v2.41.0 + with: + github-token: ${{ secrets.SCALA_STEWARD }} + - name: Checkout + uses: actions/checkout@v3.2.0 + - name: Auto approve scala steward PR + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + ./.github/scripts/scalaStewardAutoApprove.sh diff --git a/build.sbt b/build.sbt index eef327e90..d853ca18d 100644 --- a/build.sbt +++ b/build.sbt @@ -20,7 +20,7 @@ lazy val zioTest = "dev.zio" %% "zio-test" lazy val zioTestSbt = "dev.zio" %% "zio-test-sbt" % zioVersion lazy val scalaCollectionCompat = "org.scala-lang.modules" %% "scala-collection-compat" % "2.9.0" lazy val jacksonDatabind = "com.fasterxml.jackson.core" % "jackson-databind" % "2.14.1" -lazy val logback = "ch.qos.logback" % "logback-classic" % "1.4.4" +lazy val logback = "ch.qos.logback" % "logback-classic" % "1.4.5" lazy val embeddedKafka = "io.github.embeddedkafka" %% "embedded-kafka" % embeddedKafkaVersion val GITHUB_OWNER = "conduktor" diff --git a/project/plugins.sbt b/project/plugins.sbt index f5448269c..69b1f31aa 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,4 +1,4 @@ -addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") -addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.2") -addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") -addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.6") +addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0") +addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.4.2") +addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") +addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.6")