Skip to content

Commit 9966a65

Browse files
committed
Fix CI git fetch-depth
1 parent 93fdcde commit 9966a65

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed

.github/workflows/main.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1820
- name: Setup Java JDK
1921
uses: actions/setup-java@v4
2022
with:
@@ -23,8 +25,6 @@ jobs:
2325
java-version: '21'
2426
- name: Setup sbt
2527
uses: sbt/setup-sbt@v1
26-
with:
27-
fetch-depth: '0'
2828
- run: sbt blowoutCheck
2929
scalafmt:
3030
name: Scalafmt
@@ -35,6 +35,8 @@ jobs:
3535
steps:
3636
- name: Checkout
3737
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
3840
- name: Setup Java JDK
3941
uses: actions/setup-java@v4
4042
with:
@@ -43,8 +45,6 @@ jobs:
4345
java-version: '21'
4446
- name: Setup sbt
4547
uses: sbt/setup-sbt@v1
46-
with:
47-
fetch-depth: '0'
4848
- run: sbt scalafmtCheckAll
4949
scalafix:
5050
name: Scalafix
@@ -55,6 +55,8 @@ jobs:
5555
steps:
5656
- name: Checkout
5757
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
5860
- name: Setup Java JDK
5961
uses: actions/setup-java@v4
6062
with:
@@ -63,8 +65,6 @@ jobs:
6365
java-version: '21'
6466
- name: Setup sbt
6567
uses: sbt/setup-sbt@v1
66-
with:
67-
fetch-depth: '0'
6868
- run: sbt scalafixAll
6969
deploy:
7070
name: Deploy
@@ -78,6 +78,8 @@ jobs:
7878
steps:
7979
- name: Checkout
8080
uses: actions/checkout@v4
81+
with:
82+
fetch-depth: 0
8183
- name: Setup Java JDK
8284
uses: actions/setup-java@v4
8385
with:
@@ -86,8 +88,6 @@ jobs:
8688
java-version: '21'
8789
- name: Setup sbt
8890
uses: sbt/setup-sbt@v1
89-
with:
90-
fetch-depth: '0'
9191
- name: Release
9292
run: sbt ci-release
9393
env:

.github/workflows/pull-request.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1820
- name: Setup Java JDK
1921
uses: actions/setup-java@v4
2022
with:
@@ -23,8 +25,6 @@ jobs:
2325
java-version: '21'
2426
- name: Setup sbt
2527
uses: sbt/setup-sbt@v1
26-
with:
27-
fetch-depth: '0'
2828
- run: sbt blowoutCheck
2929
scalafmt:
3030
name: Scalafmt
@@ -35,6 +35,8 @@ jobs:
3535
steps:
3636
- name: Checkout
3737
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
3840
- name: Setup Java JDK
3941
uses: actions/setup-java@v4
4042
with:
@@ -43,8 +45,6 @@ jobs:
4345
java-version: '21'
4446
- name: Setup sbt
4547
uses: sbt/setup-sbt@v1
46-
with:
47-
fetch-depth: '0'
4848
- run: sbt scalafmtCheckAll
4949
scalafix:
5050
name: Scalafix
@@ -55,6 +55,8 @@ jobs:
5555
steps:
5656
- name: Checkout
5757
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
5860
- name: Setup Java JDK
5961
uses: actions/setup-java@v4
6062
with:
@@ -63,6 +65,4 @@ jobs:
6365
java-version: '21'
6466
- name: Setup sbt
6567
uses: sbt/setup-sbt@v1
66-
with:
67-
fetch-depth: '0'
6868
- run: sbt scalafixAll

.github/workflows/tag.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
1820
- name: Setup Java JDK
1921
uses: actions/setup-java@v4
2022
with:
@@ -23,8 +25,6 @@ jobs:
2325
java-version: '21'
2426
- name: Setup sbt
2527
uses: sbt/setup-sbt@v1
26-
with:
27-
fetch-depth: '0'
2828
- run: sbt blowoutCheck
2929
scalafmt:
3030
name: Scalafmt
@@ -35,6 +35,8 @@ jobs:
3535
steps:
3636
- name: Checkout
3737
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
3840
- name: Setup Java JDK
3941
uses: actions/setup-java@v4
4042
with:
@@ -43,8 +45,6 @@ jobs:
4345
java-version: '21'
4446
- name: Setup sbt
4547
uses: sbt/setup-sbt@v1
46-
with:
47-
fetch-depth: '0'
4848
- run: sbt scalafmtCheckAll
4949
scalafix:
5050
name: Scalafix
@@ -55,6 +55,8 @@ jobs:
5555
steps:
5656
- name: Checkout
5757
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
5860
- name: Setup Java JDK
5961
uses: actions/setup-java@v4
6062
with:
@@ -63,8 +65,6 @@ jobs:
6365
java-version: '21'
6466
- name: Setup sbt
6567
uses: sbt/setup-sbt@v1
66-
with:
67-
fetch-depth: '0'
6868
- run: sbt scalafixAll
6969
deploy:
7070
name: Deploy
@@ -78,6 +78,8 @@ jobs:
7878
steps:
7979
- name: Checkout
8080
uses: actions/checkout@v4
81+
with:
82+
fetch-depth: 0
8183
- name: Setup Java JDK
8284
uses: actions/setup-java@v4
8385
with:
@@ -86,8 +88,6 @@ jobs:
8688
java-version: '21'
8789
- name: Setup sbt
8890
uses: sbt/setup-sbt@v1
89-
with:
90-
fetch-depth: '0'
9191
- name: Release
9292
run: sbt ci-release
9393
env:

project/GitHubActionsGenerator.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ object GitHubActionsGenerator {
1616
val SetupSbt: Json = Json.obj(
1717
"name" := "Setup sbt",
1818
"uses" := "sbt/setup-sbt@v1",
19-
"with" := Json.obj(
20-
"fetch-depth" := "0"
21-
)
2219
)
2320

2421
val Checkout: Json = Json.obj(
2522
"name" := "Checkout",
26-
"uses" := "actions/checkout@v4"
23+
"uses" := "actions/checkout@v4",
24+
"with" := Json.obj(
25+
"fetch-depth" := 0
26+
)
2727
)
2828
}
2929

0 commit comments

Comments
 (0)