From 131b5fb320d16706a3b627f61cdcf8dab302b48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ra=20El-Saig?= Date: Sat, 27 Jul 2024 10:19:54 +0200 Subject: [PATCH] Use if condition instead. --- .github/workflows/publish-nuget.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-nuget.yml b/.github/workflows/publish-nuget.yml index a6faee7f..de789bc7 100644 --- a/.github/workflows/publish-nuget.yml +++ b/.github/workflows/publish-nuget.yml @@ -4,10 +4,10 @@ on: push: tags: - v* - - !v*-preview.* jobs: publish-nuget: + if: ${{ ! contains(github.ref_name, '-preview.') }} uses: Lombiq/GitHub-Actions/.github/workflows/publish-nuget.yml@dev secrets: API_KEY: ${{ secrets.DEFAULT_NUGET_PUBLISH_API_KEY }}