From a0cf84d349954afcc937808e8eab58237d71a152 Mon Sep 17 00:00:00 2001 From: "Frank S. Thomas" Date: Sat, 5 Oct 2024 14:23:01 +0200 Subject: [PATCH] Update codecov-action to v4 --- .github/workflows/ci.yml | 4 +++- build.sbt | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4eacec7..62c44a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,9 @@ jobs: run: sbt 'project ${{ matrix.project }}' '++ ${{ matrix.scala }}' coverage test coverageReport - name: Codecov - uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 - name: Make target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master') diff --git a/build.sbt b/build.sbt index f5c82bd..59303c6 100644 --- a/build.sbt +++ b/build.sbt @@ -42,8 +42,9 @@ ThisBuild / githubWorkflowBuild ++= Seq( cond = Some(s"matrix.scala != '3'") ), WorkflowStep.Use( - ref = UseRef.Public("codecov", "codecov-action", "v3"), - name = Some("Codecov") + ref = UseRef.Public("codecov", "codecov-action", "v4"), + name = Some("Codecov"), + env = Map("CODECOV_TOKEN" -> "${{ secrets.CODECOV_TOKEN }}") ) ) ThisBuild / mergifyPrRules := {