From c8ddc247f44e83879cdad1fa36c5911a49cebae6 Mon Sep 17 00:00:00 2001 From: "David J. M. Karlsen" Date: Sat, 9 Sep 2023 19:12:50 +0200 Subject: [PATCH] fix conditionals --- .github/workflows/build.yaml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e457566..42054df 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -45,19 +45,11 @@ jobs: make docker-buildx VERSION=${{ env.VERSION }} - name: bundle - if: - contains(' - refs/heads/main - refs/tags/v - ', github.ref) + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') run: | make bundle bundle-build bundle-push VERSION=${{ env.VERSION }} - name: catalog - if: - contains(' - refs/heads/main - refs/tags/v - ', github.ref) + if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags') run: | make catalog-build catalog-push VERSION=${{ env.VERSION }} \ No newline at end of file