|
59 | 59 | steps:
|
60 | 60 | - name: Checkout repo 📦
|
61 | 61 | 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 |
62 | 73 | - name: Cache Node.js modules 💾
|
63 | 74 | uses: actions/cache@v3
|
64 | 75 | with:
|
@@ -95,6 +106,17 @@ jobs:
|
95 | 106 | steps:
|
96 | 107 | - name: Checkout repo 📦
|
97 | 108 | 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 |
98 | 120 | - name: Download build artifacts ⬇️
|
99 | 121 | uses: actions/download-artifact@v4
|
100 | 122 | with:
|
@@ -131,6 +153,17 @@ jobs:
|
131 | 153 | steps:
|
132 | 154 | - name: Checkout repo 📦
|
133 | 155 | 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 |
134 | 167 | - name: Install OpenVPN
|
135 | 168 | run: |
|
136 | 169 | sudo apt update
|
|
0 commit comments