File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 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
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 :
You can’t perform that action at this time.
0 commit comments