From a9b7d752f45b87007f0d06e50f5c04e0db3028d2 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Thu, 30 Mar 2023 23:30:41 +0200 Subject: [PATCH] exclude tags --- .../upload-download/.forgejo/workflows/test.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/testdata/upload-download/.forgejo/workflows/test.yml b/testdata/upload-download/.forgejo/workflows/test.yml index 71a9041..da90baa 100644 --- a/testdata/upload-download/.forgejo/workflows/test.yml +++ b/testdata/upload-download/.forgejo/workflows/test.yml @@ -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 on: [push] jobs: @@ -5,7 +10,8 @@ jobs: runs-on: self-hosted steps: - uses: actions/checkout@v3 - - id: release-upload + - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} + id: release-upload uses: SELF@vTest with: direction: upload @@ -15,7 +21,8 @@ jobs: release-dir: upload-dir release-notes: "RELEASE NOTES" verbose: true - - id: release-download + - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} + id: release-download uses: SELF@vTest with: direction: download @@ -24,5 +31,6 @@ jobs: doer: testuser release-dir: download-dir verbose: true - - run: | + - if: ${{ !startsWith(github.ref, 'refs/tags/v') }} + run: | diff -u upload-dir download-dir