feat: allow skipping upload assets (#128)

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/128
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
Co-committed-by: Michael Kriese <michael.kriese@visualon.de>
This commit is contained in:
Michael Kriese 2026-01-21 09:25:14 +00:00 committed by Michael Kriese
parent f5b4441975
commit b93b6e8f70
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
3 changed files with 42 additions and 5 deletions

View file

@ -92,5 +92,35 @@ jobs:
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
diff -u upload-dir-v3 download-dir-v3
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-upload-v4
uses: SELF@vTest
with:
direction: upload
tag: v4.0
token: FORGEJO_TEST_TOKEN
skip-assets: true
verbose: true
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
id: release-download-v4
uses: SELF@vTest
with:
direction: download
tag: v4.0
token: FORGEJO_TEST_TOKEN
release-dir: download-dir-v4
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
run: |
if [ ! -d download-dir-v4 ]; then
echo "Missing download dir"
exit 1
fi
if [ ! -z "$( ls -A download-dir-v4 )" ]; then
echo "Unexpected download files: $( ls -A download-dir-v4 )"
exit 1
fi
- if: failure()
run: docker logs forgejo