From ce6b354a49b3e5681c4ef08d876356ffeb8fceb6 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Fri, 2 Aug 2024 16:56:05 +0200 Subject: [PATCH] Update conditional syntax --- .../main/resources/templates/github/workflows/build.yaml.kte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repoman/src/main/resources/templates/github/workflows/build.yaml.kte b/repoman/src/main/resources/templates/github/workflows/build.yaml.kte index 0a033a3..95ea79d 100644 --- a/repoman/src/main/resources/templates/github/workflows/build.yaml.kte +++ b/repoman/src/main/resources/templates/github/workflows/build.yaml.kte @@ -30,7 +30,7 @@ jobs: gradle ${meta.files.githubWorkflows.publishTask} -Pgitonium.isSnapshot=true gradle-version-command: | gradle -q ${meta.files.githubWorkflows.printVersionTask} -Pgitonium.isSnapshot=true - if: "github.event_name == 'push' && github.ref == 'refs/heads/${meta.mainBranch}'" + if: ${'$'}{{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} needs: [build] secrets: METABORG_ARTIFACTS_USERNAME: ${'$'}{{ secrets.METABORG_ARTIFACTS_USERNAME }} @@ -45,7 +45,7 @@ jobs: gradle ${meta.files.githubWorkflows.publishTask} gradle-version-command: | gradle -q ${meta.files.githubWorkflows.printVersionTask} - if: "github.event_name == 'push' && startsWith(github.ref, 'refs/tags/${meta.releaseTagPrefix}')" + if: ${'$'}{{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/devenv-release/') }} needs: [build] secrets: METABORG_ARTIFACTS_USERNAME: ${'$'}{{ secrets.METABORG_ARTIFACTS_USERNAME }}