Skip to content

Commit afd5bab

Browse files
authored
fix
1 parent 35e9957 commit afd5bab

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pipeline.yml

+33
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,17 @@ jobs:
5959
steps:
6060
- name: Checkout repo 📦
6161
uses: actions/checkout@v4
62+
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
63+
if: contains(runner.labels, 'self-hosted')
64+
run: |
65+
mkdir -p ~/.setup-actions
66+
cd ~/.setup-actions
67+
if [ ! -d "upload-artifact" ]; then
68+
echo "Cloning upload-artifact@v4..."
69+
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
70+
else
71+
echo "upload-artifact already fetched."
72+
fi
6273
- name: Cache Node.js modules 💾
6374
uses: actions/cache@v3
6475
with:
@@ -95,6 +106,17 @@ jobs:
95106
steps:
96107
- name: Checkout repo 📦
97108
uses: actions/checkout@v4
109+
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
110+
if: contains(runner.labels, 'self-hosted')
111+
run: |
112+
mkdir -p ~/.setup-actions
113+
cd ~/.setup-actions
114+
if [ ! -d "upload-artifact" ]; then
115+
echo "Cloning upload-artifact@v4..."
116+
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
117+
else
118+
echo "upload-artifact already fetched."
119+
fi
98120
- name: Download build artifacts ⬇️
99121
uses: actions/download-artifact@v4
100122
with:
@@ -131,6 +153,17 @@ jobs:
131153
steps:
132154
- name: Checkout repo 📦
133155
uses: actions/checkout@v4
156+
- name: Pre-fetch upload-artifact action (self-hosted only) ⚙️
157+
if: contains(runner.labels, 'self-hosted')
158+
run: |
159+
mkdir -p ~/.setup-actions
160+
cd ~/.setup-actions
161+
if [ ! -d "upload-artifact" ]; then
162+
echo "Cloning upload-artifact@v4..."
163+
git clone --depth=1 --branch v4 https://github.com/actions/upload-artifact.git upload-artifact
164+
else
165+
echo "upload-artifact already fetched."
166+
fi
134167
- name: Install OpenVPN
135168
run: |
136169
sudo apt update

0 commit comments

Comments
 (0)