mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2024-11-06 06:25:46 -05:00
exclude tags
This commit is contained in:
parent
28d6f1caa5
commit
a9b7d752f4
1 changed files with 11 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
#
|
||||||
|
# The following:
|
||||||
|
# if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
# is a workaround until https://codeberg.org/forgejo/forgejo/issues/608 is fixed
|
||||||
|
#
|
||||||
name: Upload & Download a Forgejo Release
|
name: Upload & Download a Forgejo Release
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -5,7 +10,8 @@ jobs:
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- id: release-upload
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
id: release-upload
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
with:
|
with:
|
||||||
direction: upload
|
direction: upload
|
||||||
|
@ -15,7 +21,8 @@ jobs:
|
||||||
release-dir: upload-dir
|
release-dir: upload-dir
|
||||||
release-notes: "RELEASE NOTES"
|
release-notes: "RELEASE NOTES"
|
||||||
verbose: true
|
verbose: true
|
||||||
- id: release-download
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
id: release-download
|
||||||
uses: SELF@vTest
|
uses: SELF@vTest
|
||||||
with:
|
with:
|
||||||
direction: download
|
direction: download
|
||||||
|
@ -24,5 +31,6 @@ jobs:
|
||||||
doer: testuser
|
doer: testuser
|
||||||
release-dir: download-dir
|
release-dir: download-dir
|
||||||
verbose: true
|
verbose: true
|
||||||
- run: |
|
- if: ${{ !startsWith(github.ref, 'refs/tags/v') }}
|
||||||
|
run: |
|
||||||
diff -u upload-dir download-dir
|
diff -u upload-dir download-dir
|
||||||
|
|
Loading…
Reference in a new issue