Skip to content

Commit 034d4ef

Browse files
Heiko KieselWeltraumschaf
authored andcommitted
Replace manual git fetch with fetch-depth of 0 in checkout step
Signed-off-by: Heiko Kiesel <heiko.kiesel@iteratec.com>
1 parent 176c1e2 commit 034d4ef

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ jobs:
2222

2323
- name: Checkout repository
2424
uses: actions/checkout@v3 # TODO: with... bot?
25-
26-
- name: Fetch git tags # Required for axion-release-plugin
27-
run: git fetch --tags
25+
with:
26+
fetch-depth: 0
2827

2928
- name: Set up JDK 17
3029
uses: actions/setup-java@v3
@@ -60,11 +59,9 @@ jobs:
6059
- name: Checkout repository
6160
uses: actions/checkout@v3
6261
with:
62+
fetch-depth: 0
6363
ref: refs/tags/${{ needs.github.outputs.version }}
6464

65-
- name: Fetch git tags # Required for axion-release-plugin
66-
run: git fetch --tags
67-
6865
- name: Set up JDK 17
6966
uses: actions/setup-java@v3
7067
with:

.github/workflows/snapshot.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919

2020
- name: Checkout repository
2121
uses: actions/checkout@v3
22-
23-
- name: Fetch git tags # Required for axion-release-plugin
24-
run: git fetch --tags
22+
with:
23+
fetch-depth: 0
2524

2625
- name: Set up JDK 17
2726
uses: actions/setup-java@v3

0 commit comments

Comments
 (0)