16
16
minor_version : ${{ steps.set_version.outputs.minor_version }}
17
17
build_version : ${{ steps.set_version.outputs.build_version }}
18
18
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
19
31
- name : Checkout repo 📦
20
32
uses : actions/checkout@v4
21
33
with :
57
69
build_version : ${{ steps.set_version.outputs.build_version }}
58
70
needs : [bump]
59
71
steps :
60
- - name : Checkout repo 📦
61
- uses : actions/checkout@v4
62
72
- name : Pre-fetch upload-artifact action (self-hosted only) ⚙️
63
73
if : contains(runner.labels, 'self-hosted')
64
74
run : |
67
77
if [ ! -d "upload-artifact" ]; then
68
78
echo "Cloning upload-artifact@v4..."
69
79
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
80
+ echo "✅ upload-artifact@v4 cloned manually!"
70
81
else
71
- echo "upload-artifact already fetched."
82
+ echo "✅ upload-artifact already fetched."
72
83
fi
84
+ - name : Checkout repo 📦
85
+ uses : actions/checkout@v4
73
86
- name : Cache Node.js modules 💾
74
87
uses : actions/cache@v3
75
88
with :
@@ -104,8 +117,6 @@ jobs:
104
117
runs-on : [self-hosted, Linux, X64]
105
118
needs : [build, bump]
106
119
steps :
107
- - name : Checkout repo 📦
108
- uses : actions/checkout@v4
109
120
- name : Pre-fetch upload-artifact action (self-hosted only) ⚙️
110
121
if : contains(runner.labels, 'self-hosted')
111
122
run : |
@@ -114,9 +125,12 @@ jobs:
114
125
if [ ! -d "upload-artifact" ]; then
115
126
echo "Cloning upload-artifact@v4..."
116
127
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
128
+ echo "✅ upload-artifact@v4 cloned manually!"
117
129
else
118
- echo "upload-artifact already fetched."
130
+ echo "✅ upload-artifact already fetched."
119
131
fi
132
+ - name : Checkout repo 📦
133
+ uses : actions/checkout@v4
120
134
- name : Download build artifacts ⬇️
121
135
uses : actions/download-artifact@v4
122
136
with :
@@ -151,8 +165,6 @@ jobs:
151
165
runs-on : [self-hosted, Linux, X64]
152
166
needs : [docker-build, build, bump]
153
167
steps :
154
- - name : Checkout repo 📦
155
- uses : actions/checkout@v4
156
168
- name : Pre-fetch upload-artifact action (self-hosted only) ⚙️
157
169
if : contains(runner.labels, 'self-hosted')
158
170
run : |
@@ -161,9 +173,12 @@ jobs:
161
173
if [ ! -d "upload-artifact" ]; then
162
174
echo "Cloning upload-artifact@v4..."
163
175
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
176
+ echo "✅ upload-artifact@v4 cloned manually!"
164
177
else
165
- echo "upload-artifact already fetched."
178
+ echo "✅ upload-artifact already fetched."
166
179
fi
180
+ - name : Checkout repo 📦
181
+ uses : actions/checkout@v4
167
182
- name : Install OpenVPN
168
183
run : |
169
184
sudo apt update
0 commit comments