From 337f2931eebe964d1f274b1c711e2fbc40321cde Mon Sep 17 00:00:00 2001 From: Daniel Llewellyn Date: Tue, 3 Nov 2020 15:31:08 +0000 Subject: [PATCH] Fix snapcraftbuild I _think_ this fixes the yaml parser error from GitHub Actions (ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/context-and-expression-syntax-for-github-actions#example-expression-in-an-if-conditional) Signed-off-by: Daniel Llewellyn --- .github/workflows/snapcraftbuild.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/snapcraftbuild.yml b/.github/workflows/snapcraftbuild.yml index b61e02c2..d8eb3f57 100644 --- a/.github/workflows/snapcraftbuild.yml +++ b/.github/workflows/snapcraftbuild.yml @@ -30,7 +30,7 @@ jobs: snap: ${{ steps.build.outputs.snap }} isClassic: 'false' - name: Publish unstable builds to Edge - if: github.ref == "refs/heads/master" + if: ${{ github.ref == "refs/heads/master" }} uses: snapcore/action-publish@v1 with: store_login: ${{ secrets.STORE_LOGIN }} @@ -38,7 +38,7 @@ jobs: release: edge - name: Publish tagged prerelease builds to Beta # These are identified by having a hyphen in the tag name, e.g.: v1.0.0-beta1 - if: startsWith("refs/tags/v", github.ref) && contains("-", github.ref) + if: ${{ startsWith("refs/tags/v", github.ref) && contains("-", github.ref) }} uses: snapcore/action-publish@v1 with: store_login: ${{ secrets.STORE_LOGIN }} @@ -46,7 +46,7 @@ jobs: release: beta - name: Publish tagged stable or release-candidate builds to Candidate # These are identified by NOT having a hyphen in the tag name, OR having "-RC" or "-rc" in the tag name. - if: startsWith("refs/tags/v", github.ref) && ( ( ! contains("-", github.ref) ) || contains("-RC", github.ref) || contains("-rc", github.ref) ) + if: ${{ startsWith("refs/tags/v", github.ref) && ( ( ! contains("-", github.ref) ) || contains("-RC", github.ref) || contains("-rc", github.ref) ) }} uses: snapcore/action-publish@v1 with: store_login: ${{ secrets.STORE_LOGIN }}