From acbadc83fc04205ee708a6151b1bb2bd4829aeea Mon Sep 17 00:00:00 2001 From: David Boreham Date: Mon, 10 Apr 2023 11:43:04 -0600 Subject: [PATCH] Workaround for ref being different in production Former-commit-id: f5c2e280655883bbbfd6a90b776e8a930c736ad4 --- .gitea/workflows/publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 08e63bb3..c86713ce 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -41,5 +41,6 @@ jobs: with: tag_name: ${{ steps.build-info.outputs.build-tag }} # On the publish test branch, mark our release as a draft - draft: ${{ github.ref == 'refs/heads/publish-test' }} + # Hack using endsWith to workaround Gitea sometimes sending "publish-test" vs "refs/heads/publish-test" + draft: ${{ endsWith('publish-test', github.ref ) }} files: ./laconic-so