Skip to content

Commit f687344

Browse files
authored
fix
1 parent afd5bab commit f687344

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

.github/workflows/pipeline.yml

+24-9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,18 @@ jobs:
1616
minor_version: ${{ steps.set_version.outputs.minor_version }}
1717
build_version: ${{ steps.set_version.outputs.build_version }}
1818
steps:
19+
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
20+
if: contains(runner.labels, 'self-hosted')
21+
run: |
22+
mkdir -p ~/.setup-actions
23+
cd ~/.setup-actions
24+
if [ ! -d "upload-artifact" ]; then
25+
echo "Cloning upload-artifact@v4..."
26+
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
27+
echo "✅ upload-artifact@v4 cloned manually!"
28+
else
29+
echo "✅ upload-artifact already fetched."
30+
fi
1931
- name: Checkout repo 📦
2032
uses: actions/checkout@v4
2133
with:
@@ -57,8 +69,6 @@ jobs:
5769
build_version: ${{ steps.set_version.outputs.build_version }}
5870
needs: [bump]
5971
steps:
60-
- name: Checkout repo 📦
61-
uses: actions/checkout@v4
6272
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
6373
if: contains(runner.labels, 'self-hosted')
6474
run: |
@@ -67,9 +77,12 @@ jobs:
6777
if [ ! -d "upload-artifact" ]; then
6878
echo "Cloning upload-artifact@v4..."
6979
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
80+
echo "✅ upload-artifact@v4 cloned manually!"
7081
else
71-
echo "upload-artifact already fetched."
82+
echo "upload-artifact already fetched."
7283
fi
84+
- name: Checkout repo 📦
85+
uses: actions/checkout@v4
7386
- name: Cache Node.js modules 💾
7487
uses: actions/cache@v3
7588
with:
@@ -104,8 +117,6 @@ jobs:
104117
runs-on: [self-hosted, Linux, X64]
105118
needs: [build, bump]
106119
steps:
107-
- name: Checkout repo 📦
108-
uses: actions/checkout@v4
109120
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
110121
if: contains(runner.labels, 'self-hosted')
111122
run: |
@@ -114,9 +125,12 @@ jobs:
114125
if [ ! -d "upload-artifact" ]; then
115126
echo "Cloning upload-artifact@v4..."
116127
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
128+
echo "✅ upload-artifact@v4 cloned manually!"
117129
else
118-
echo "upload-artifact already fetched."
130+
echo "upload-artifact already fetched."
119131
fi
132+
- name: Checkout repo 📦
133+
uses: actions/checkout@v4
120134
- name: Download build artifacts ⬇️
121135
uses: actions/download-artifact@v4
122136
with:
@@ -151,8 +165,6 @@ jobs:
151165
runs-on: [self-hosted, Linux, X64]
152166
needs: [docker-build, build, bump]
153167
steps:
154-
- name: Checkout repo 📦
155-
uses: actions/checkout@v4
156168
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
157169
if: contains(runner.labels, 'self-hosted')
158170
run: |
@@ -161,9 +173,12 @@ jobs:
161173
if [ ! -d "upload-artifact" ]; then
162174
echo "Cloning upload-artifact@v4..."
163175
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
176+
echo "✅ upload-artifact@v4 cloned manually!"
164177
else
165-
echo "upload-artifact already fetched."
178+
echo "upload-artifact already fetched."
166179
fi
180+
- name: Checkout repo 📦
181+
uses: actions/checkout@v4
167182
- name: Install OpenVPN
168183
run: |
169184
sudo apt update

0 commit comments

Comments
 (0)