Skip to content

Commit 3289cad

Browse files
authored
fix
1 parent d5aafd8 commit 3289cad

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/pipeline.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ jobs:
1616
minor_version: ${{ steps.set_version.outputs.minor_version }}
1717
build_version: ${{ steps.set_version.outputs.build_version }}
1818
steps:
19-
- name: Checkout repo 📦
20-
uses: actions/checkout@v4
21-
with:
22-
fetch-depth: '0'
2319
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
2420
if: contains(runner.labels, 'self-hosted')
2521
run: |
@@ -28,9 +24,14 @@ jobs:
2824
if [ ! -d "upload-artifact" ]; then
2925
echo "Cloning upload-artifact@v4..."
3026
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
27+
echo "✅ upload-artifact@v4 cloned manually!"
3128
else
32-
echo "upload-artifact already fetched."
29+
echo "upload-artifact already fetched."
3330
fi
31+
- name: Checkout repo 📦
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: '0'
3435
- name: Bump version and push tag 👊
3536
uses: anothrNick/github-tag-action@master
3637
id: bump_version
@@ -71,8 +72,6 @@ jobs:
7172
build_version: ${{ needs.bump.outputs.build_version }}
7273
needs: [bump]
7374
steps:
74-
- name: Checkout repo 📦
75-
uses: actions/checkout@v4
7675
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
7776
if: contains(runner.labels, 'self-hosted')
7877
run: |
@@ -81,9 +80,12 @@ jobs:
8180
if [ ! -d "upload-artifact" ]; then
8281
echo "Cloning upload-artifact@v4..."
8382
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
83+
echo "✅ upload-artifact@v4 cloned manually!"
8484
else
85-
echo "upload-artifact already fetched."
85+
echo "upload-artifact already fetched."
8686
fi
87+
- name: Checkout repo 📦
88+
uses: actions/checkout@v4
8789
- name: Cache Maven packages 💾
8890
uses: actions/cache@v3
8991
with:

0 commit comments

Comments
 (0)