Skip to content

Commit 77ec9b1

Browse files
authored
Merge pull request #1300 from fthomas/update/codecov-action-v4
Update codecov-action to v4
2 parents 0e04fa5 + f42de66 commit 77ec9b1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ jobs:
6767
run: sbt '++ ${{ matrix.scala }}' validateJVM30 validateJS30 validateNative30
6868

6969
- name: Codecov
70-
uses: codecov/codecov-action@v1
70+
env:
71+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
72+
uses: codecov/codecov-action@v4
7173

7274
- name: Make target directories
7375
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))

build.sbt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ ThisBuild / githubWorkflowBuild :=
110110
name = Some("Build project (Scala 3)"),
111111
cond = Some(s"matrix.scala == '3'")
112112
),
113-
WorkflowStep.Use(UseRef.Public("codecov", "codecov-action", "v1"), name = Some("Codecov"))
113+
WorkflowStep.Use(
114+
ref = UseRef.Public("codecov", "codecov-action", "v4"),
115+
name = Some("Codecov"),
116+
env = Map("CODECOV_TOKEN" -> "${{ secrets.CODECOV_TOKEN }}")
117+
)
114118
)
115119
ThisBuild / mergifyPrRules := {
116120
val authorCondition = MergifyCondition.Or(

0 commit comments

Comments
 (0)