Skip to content

Commit d5aafd8

Browse files
authored
fix
1 parent 2c98445 commit d5aafd8

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/pipeline.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020
uses: actions/checkout@v4
2121
with:
2222
fetch-depth: '0'
23+
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
24+
if: contains(runner.labels, 'self-hosted')
25+
run: |
26+
mkdir -p ~/.setup-actions
27+
cd ~/.setup-actions
28+
if [ ! -d "upload-artifact" ]; then
29+
echo "Cloning upload-artifact@v4..."
30+
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
31+
else
32+
echo "upload-artifact already fetched."
33+
fi
2334
- name: Bump version and push tag 👊
2435
uses: anothrNick/github-tag-action@master
2536
id: bump_version
@@ -62,6 +73,17 @@ jobs:
6273
steps:
6374
- name: Checkout repo 📦
6475
uses: actions/checkout@v4
76+
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
77+
if: contains(runner.labels, 'self-hosted')
78+
run: |
79+
mkdir -p ~/.setup-actions
80+
cd ~/.setup-actions
81+
if [ ! -d "upload-artifact" ]; then
82+
echo "Cloning upload-artifact@v4..."
83+
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
84+
else
85+
echo "upload-artifact already fetched."
86+
fi
6587
- name: Cache Maven packages 💾
6688
uses: actions/cache@v3
6789
with:

0 commit comments

Comments
 (0)