From f7ff69715a1e318130923174c395a013bf16d7ec Mon Sep 17 00:00:00 2001 From: Ahmad Husen Date: Wed, 26 May 2021 10:29:34 +0700 Subject: [PATCH] fix(ci): conditional syntax & others --- .github/workflows/main.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c87cc46..f37030f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,7 +42,7 @@ jobs: publish: name: Publish container image needs: pretest - if: ${{ github.event_name != 'pull_request' }} + if: github.event_name != 'pull_request' runs-on: ubuntu-latest steps: @@ -96,9 +96,9 @@ jobs: run: wget https://github.com/official-human/nonicons-font/raw/main/PKGBUILD - name: Update action.yml to use edge tagged container image - if: ${{ github.ref != 'refs/tags/*' }} + if: github.ref == 'refs/heads/main' run: | - sed -i 's/.*image\:.*/ image\: \"ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml + sed -i 's/.*image\:.*/ image\: \"docker\:\/\/ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml cat action.yml - name: Running tests