From 73b6533623fce45c3d8d8604474fadb0f9caa6e9 Mon Sep 17 00:00:00 2001 From: Vladimir Smirnov Date: Tue, 24 May 2022 00:35:33 +0200 Subject: [PATCH] github workflow: fix docker-ghcrio workflow to run only on tag events --- .github/workflows/docker-ghcrio.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-ghcrio.yml b/.github/workflows/docker-ghcrio.yml index 251f68190..a4af53619 100644 --- a/.github/workflows/docker-ghcrio.yml +++ b/.github/workflows/docker-ghcrio.yml @@ -1,18 +1,14 @@ name: Upload Docker images to ghcr.io on: - push: - branches: [ main ] - tags: [ 'v*' ] - pull_request: - branches: [ main ] workflow_run: workflows: ["Tests"] - branches: [ main ] + tags: [ 'v*' ] types: - completed jobs: docker: name: Build image + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest steps: - name: Check out code