From 01c495597bf0be4145513df7a2478c54463f00c2 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 7 May 2024 21:39:42 +0300 Subject: [PATCH] Upload image to artifacts if this is not master --- .github/workflows/build-image.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 2be389d0..e5c34349 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -32,7 +32,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload image to artifacts - if: ${{ github.event_name == 'workflow_dispatch' }} + if: ${{ github.event_name == 'workflow_dispatch' || github.ref != 'refs/heads/master' }} uses: actions/upload-artifact@v4 with: name: image