From 3ddd3e86abf940f4c470c53f217749003b472131 Mon Sep 17 00:00:00 2001 From: "permutive-steward[bot]" <155995252+permutive-steward[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:11:08 +0000 Subject: [PATCH 1/6] Update sbt-ci to 2.19.0 --- project/plugins.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index 9916220..894bc07 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,5 +1,5 @@ addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.3") -addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "2.15.1") +addSbtPlugin("com.alejandrohdezma" % "sbt-ci" % "2.19.0") addSbtPlugin("com.alejandrohdezma" % "sbt-fix" % "0.7.2") addSbtPlugin("com.alejandrohdezma" % "sbt-github-mdoc" % "0.12.0") addSbtPlugin("com.alejandrohdezma" % "sbt-github-header" % "0.12.0") From bedcd0a48e0899db293979609ac3be55b2ee8026 Mon Sep 17 00:00:00 2001 From: "permutive-steward[bot]" <155995252+permutive-steward[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:11:20 +0000 Subject: [PATCH 2/6] Run `sbt generateCiFiles` Executed command: sbt generateCiFiles --- .github/workflows/ci.yml | 20 ++++++++++++++----- .github/workflows/release.yml | 37 +++++++++++++++++++++-------------- 2 files changed, 37 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e47a1cf..5179e4d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,13 @@ jobs: name: Labeler runs-on: ubuntu-latest steps: + - name: Checkout project + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + ref: ${{ github.head_ref }} + repository: ${{ github.event.pull_request.head.repo.full_name }} + fetch-depth: 0 + - name: Update PR labels uses: alejandrohdezma/actions/labeler@v1 if: github.event.pull_request.head.repo.full_name == github.repository @@ -59,17 +66,20 @@ jobs: - 17 steps: - name: Checkout project - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: ref: ${{ github.head_ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} fetch-depth: 0 - - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 + - name: Run Coursier Cache Action + uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7 + + - name: Run Coursier Setup Action + uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9 with: - distribution: "liberica" - java-version: ${{ matrix.jdk }} - cache: "sbt" + jvm: liberica:${{ matrix.jdk }} + apps: sbt - name: Run `sbt ci-test` run: sbt ci-test diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 87f08e6..c976f3e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,13 +23,16 @@ on: tags: [v*] workflow_dispatch: +permissions: + contents: write + jobs: release: name: Release a new version of the artifact runs-on: ubuntu-latest steps: - name: Checkout project - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 @@ -37,16 +40,19 @@ jobs: if: github.event_name == 'push' uses: alejandrohdezma/actions/check-semver-tag@v1 - - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 + - name: Run Coursier Cache Action + uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7 + + - name: Run Coursier Setup Action + uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9 with: - distribution: "liberica" - java-version: "11" - cache: "sbt" + jvm: liberica:17 + apps: sbt - name: Run `sbt ci-publish` run: sbt ci-publish env: - GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} PGP_SECRET: ${{ secrets.PGP_SECRET }} SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} @@ -59,22 +65,25 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout project - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: fetch-depth: 0 ref: main - token: ${{ secrets.ADMIN_GITHUB_TOKEN }} + ssh-key: ${{ secrets.GIT_DEPLOY_KEY }} + + - name: Run Coursier Cache Action + uses: coursier/cache-action@4e2615869d13561d626ed48655e1a39e5b192b3c # v6.4.7 - - uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1 + - name: Run Coursier Setup Action + uses: coursier/setup-action@039f736548afa5411c1382f40a5bd9c2d30e0383 # v1.3.9 with: - distribution: "liberica" - java-version: "17" - cache: "sbt" + jvm: liberica:17 + apps: sbt - name: Run `sbt ci-docs` run: sbt ci-docs env: - GITHUB_TOKEN: ${{ secrets.ADMIN_GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }} - name: Commit changes by `sbt ci-docs` @@ -91,5 +100,3 @@ jobs: with: message: Reset `versionPolicyIntention` [skip ci] branch: main - - \ No newline at end of file From 61a215ea91988e1fe8e264f01faa776cd83cbbff Mon Sep 17 00:00:00 2001 From: "permutive-steward[bot]" <155995252+permutive-steward[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:11:20 +0000 Subject: [PATCH 3/6] Update sbt-mdoc to 2.7.2 --- project/plugins.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/plugins.sbt b/project/plugins.sbt index 894bc07..56209bb 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -12,5 +12,5 @@ addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1. addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.10.0") addSbtPlugin("ch.epfl.scala" % "sbt-version-policy" % "3.2.1") addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2") -addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.5.4") +addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.7.2") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.5") From fc43dab573401371696baf5d0f098a1d86fe5592 Mon Sep 17 00:00:00 2001 From: "permutive-steward[bot]" <155995252+permutive-steward[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:11:20 +0000 Subject: [PATCH 4/6] Update cats-effect to 3.6.2 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 2351d9b..3a0773d 100644 --- a/build.sbt +++ b/build.sbt @@ -13,7 +13,7 @@ lazy val documentation = project lazy val refreshable = module .settings(libraryDependencies += "org.typelevel" %% "cats-core" % "2.13.0") - .settings(libraryDependencies += "org.typelevel" %% "cats-effect" % "3.5.7") + .settings(libraryDependencies += "org.typelevel" %% "cats-effect" % "3.6.2") .settings(libraryDependencies += "co.fs2" %% "fs2-core" % "3.12.0") .settings(libraryDependencies += "com.github.cb372" %% "cats-retry" % "3.1.3") .settings(libraryDependencies += "org.scalameta" %% "munit" % "1.1.1" % Test) From 9c3eb7fba5f5b5d7f9a5dd5b8d19126ef3efac3e Mon Sep 17 00:00:00 2001 From: "permutive-steward[bot]" <155995252+permutive-steward[bot]@users.noreply.github.com> Date: Fri, 11 Jul 2025 07:11:20 +0000 Subject: [PATCH 5/6] Update cats-effect-testkit to 3.6.2 --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 3a0773d..dad5feb 100644 --- a/build.sbt +++ b/build.sbt @@ -18,4 +18,4 @@ lazy val refreshable = module .settings(libraryDependencies += "com.github.cb372" %% "cats-retry" % "3.1.3") .settings(libraryDependencies += "org.scalameta" %% "munit" % "1.1.1" % Test) .settings(libraryDependencies += "org.typelevel" %% "munit-cats-effect" % "2.1.0" % Test) - .settings(libraryDependencies += "org.typelevel" %% "cats-effect-testkit" % "3.5.7" % Test) + .settings(libraryDependencies += "org.typelevel" %% "cats-effect-testkit" % "3.6.2" % Test) From d26d42a2f86c8bdbad620e6c9090a9ed144aeee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Hern=C3=A1ndez?= Date: Fri, 11 Jul 2025 09:14:51 +0200 Subject: [PATCH 6/6] Update build.sbt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Alejandro Hernández --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index dad5feb..2715cad 100644 --- a/build.sbt +++ b/build.sbt @@ -1,7 +1,7 @@ ThisBuild / scalaVersion := "2.13.16" ThisBuild / crossScalaVersions := Seq("2.12.20", "2.13.16", "3.3.6") ThisBuild / organization := "com.permutive" -ThisBuild / versionPolicyIntention := Compatibility.BinaryAndSourceCompatible +ThisBuild / versionPolicyIntention := Compatibility.BinaryCompatible addCommandAlias("ci-test", "fix --check; versionPolicyCheck; mdoc; publishLocal; +test") addCommandAlias("ci-docs", "github; mdoc; headerCreateAll")