From cebb8ade1bffd989ca13f3089be4b8fafb9a15ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Cl=C3=A9ment?= Date: Thu, 6 May 2021 12:14:55 +0200 Subject: [PATCH] :pencil2: [CI/CD] Don't push if PR --- .github/workflows/build_addon.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/build_addon.yml b/.github/workflows/build_addon.yml index 25863d0..9f7b566 100644 --- a/.github/workflows/build_addon.yml +++ b/.github/workflows/build_addon.yml @@ -82,8 +82,7 @@ jobs: - name: Build and push ${{matrix.arch}} uses: docker/build-push-action@v2 with: - push: ${{ github.ref == 'refs/heads/master' || startsWith('refs/tags/', github.ref) }} - context: ./${{env.TARGET}} + push: ${{ github.event_name != 'pull_request' }} tags: ${{env.TAGS}} labels: io.hass.name=${{env.NAME}}, io.hass.description=${{env.DESCRIPTION}}, io.hass.url=${{env.URL}}, io.hass.arch=${{matrix.arch}}, io.hass.version=${{env.VERSION}}, io.hass.type=addon build-args: |