From 77f0819445b7e3a95144e310cdaf118834b6f002 Mon Sep 17 00:00:00 2001 From: Ahmad Husen Date: Mon, 24 May 2021 14:38:32 +0700 Subject: [PATCH] ci: don't publish container image when PR pushed --- .github/workflows/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c89abb2..c87cc46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,6 +42,7 @@ jobs: publish: name: Publish container image needs: pretest + if: ${{ github.event_name != 'pull_request' }} runs-on: ubuntu-latest steps: @@ -95,7 +96,7 @@ 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.event_name == 'pull_request' || github.ref != 'refs/tags/*' }} + if: ${{ github.ref != 'refs/tags/*' }} run: | sed -i 's/.*image\:.*/ image\: \"ghcr.io\/${{ github.repository_owner }}\/${{ github.event.repository.name }}\:edge\"/' action.yml cat action.yml