diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 227485fb..77754f34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -228,7 +228,7 @@ jobs: - name: Upload target directories if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }} path: targets.tar @@ -345,7 +345,7 @@ jobs: run: sbt +update - name: Download target directories (2.12, sbt-typelevelJVM) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: target-${{ matrix.os }}-${{ matrix.java }}-2.12-sbt-typelevelJVM diff --git a/github-actions/src/main/scala/org/typelevel/sbt/gha/GenerativePlugin.scala b/github-actions/src/main/scala/org/typelevel/sbt/gha/GenerativePlugin.scala index ff47ea68..7d577ade 100644 --- a/github-actions/src/main/scala/org/typelevel/sbt/gha/GenerativePlugin.scala +++ b/github-actions/src/main/scala/org/typelevel/sbt/gha/GenerativePlugin.scala @@ -711,7 +711,7 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)} val artifactId = MatrixKeys.groupId(keys) val upload = WorkflowStep.Use( - UseRef.Public("actions", "upload-artifact", "v3"), + UseRef.Public("actions", "upload-artifact", "v4"), name = Some(s"Upload target directories"), params = Map("name" -> s"target-$artifactId", "path" -> "targets.tar"), cond = Some(publicationCond.value) @@ -757,7 +757,7 @@ ${indent(jobs.map(compileJob(_, sbt)).mkString("\n\n"), 1)} val pretty = v.mkString(", ") val download = WorkflowStep.Use( - UseRef.Public("actions", "download-artifact", "v3"), + UseRef.Public("actions", "download-artifact", "v4"), name = Some(s"Download target directories ($pretty)"), params = Map("name" -> s"target-$${{ matrix.os }}-$${{ matrix.java }}-${v.mkString("-")}")