Skip to content

Commit 0bf2ef0

Browse files
authored
Merge pull request #162 from xuwei-k/update-checkout
Update to `actions/checkout@v4`
2 parents 1515a37 + 65d2f73 commit 0bf2ef0

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- name: Checkout current branch (full)
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
3434

@@ -76,7 +76,7 @@ jobs:
7676
runs-on: ${{ matrix.os }}
7777
steps:
7878
- name: Checkout current branch (full)
79-
uses: actions/checkout@v3
79+
uses: actions/checkout@v4
8080
with:
8181
fetch-depth: 0
8282

src/main/scala/sbtghactions/WorkflowStep.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ object WorkflowStep {
3333
val DefaultSbtStepPreamble: List[String] = List(s"++ $${{ matrix.scala }}")
3434

3535
val CheckoutFull: WorkflowStep = Use(
36-
UseRef.Public("actions", "checkout", "v3"),
36+
UseRef.Public("actions", "checkout", "v4"),
3737
name = Some("Checkout current branch (full)"),
3838
params = Map("fetch-depth" -> "0"))
3939

40-
val Checkout: WorkflowStep = Use(UseRef.Public("actions", "checkout", "v3"), name = Some("Checkout current branch (fast)"))
40+
val Checkout: WorkflowStep = Use(UseRef.Public("actions", "checkout", "v4"), name = Some("Checkout current branch (fast)"))
4141

4242
def SetupJava(versions: List[JavaSpec]): List[WorkflowStep] =
4343
versions map {

src/sbt-test/sbtghactions/check-and-regenerate/expected-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838
steps:
3939
- name: Checkout current branch (full)
40-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
4141
with:
4242
fetch-depth: 0
4343

@@ -90,7 +90,7 @@ jobs:
9090

9191
steps:
9292
- name: Checkout current branch (full)
93-
uses: actions/checkout@v3
93+
uses: actions/checkout@v4
9494
with:
9595
fetch-depth: 0
9696

src/sbt-test/sbtghactions/no-clean/.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- name: Checkout current branch (full)
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

@@ -66,7 +66,7 @@ jobs:
6666
runs-on: ${{ matrix.os }}
6767
steps:
6868
- name: Checkout current branch (full)
69-
uses: actions/checkout@v3
69+
uses: actions/checkout@v4
7070
with:
7171
fetch-depth: 0
7272

src/sbt-test/sbtghactions/non-existent-target/.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- name: Checkout current branch (full)
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ${{ matrix.os }}
6666
steps:
6767
- name: Checkout current branch (full)
68-
uses: actions/checkout@v3
68+
uses: actions/checkout@v4
6969
with:
7070
fetch-depth: 0
7171

src/sbt-test/sbtghactions/sbt-native-thin-client/.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- name: Checkout current branch (full)
30-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
3333

@@ -82,7 +82,7 @@ jobs:
8282
runs-on: ${{ matrix.os }}
8383
steps:
8484
- name: Checkout current branch (full)
85-
uses: actions/checkout@v3
85+
uses: actions/checkout@v4
8686
with:
8787
fetch-depth: 0
8888

src/sbt-test/sbtghactions/suppressed-scala-version/expected-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- name: Checkout current branch (full)
31-
uses: actions/checkout@v3
31+
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
3434

@@ -67,7 +67,7 @@ jobs:
6767
runs-on: ${{ matrix.os }}
6868
steps:
6969
- name: Checkout current branch (full)
70-
uses: actions/checkout@v3
70+
uses: actions/checkout@v4
7171
with:
7272
fetch-depth: 0
7373

src/test/scala/sbtghactions/GenerativePluginSpec.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ class GenerativePluginSpec extends Specification {
516516
- run: echo hello
517517

518518
- name: Checkout current branch (fast)
519-
uses: actions/checkout@v3"""
519+
uses: actions/checkout@v4"""
520520
}
521521

522522
"compile a job with one step and three oses" in {
@@ -737,7 +737,7 @@ class GenerativePluginSpec extends Specification {
737737
- run: echo $${{ matrix.test }}
738738

739739
- name: Checkout current branch (fast)
740-
uses: actions/checkout@v3"""
740+
uses: actions/checkout@v4"""
741741
}
742742

743743
"compile a job with extra runs-on labels" in {
@@ -960,7 +960,7 @@ class GenerativePluginSpec extends Specification {
960960
- run: echo hello
961961

962962
- name: Checkout current branch (fast)
963-
uses: actions/checkout@v3"""
963+
uses: actions/checkout@v4"""
964964
}
965965
}
966966

0 commit comments

Comments
 (0)