From b9a9319cb41db86fc1ac13dbabd3e9f141ccc31e Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Sat, 27 Nov 2021 12:09:33 +0000 Subject: [PATCH] fix(ci): trigger CI on published releases --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 661e8f0a..180f95b1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,8 @@ name: CI on: + release: + types: + - published push: branches: - master @@ -33,7 +36,8 @@ jobs: if: | github.actor != 'dependabot[bot]' && (github.event_name == 'push' || - github.event.pull_request.head.repo.full_name == github.repository) + github.event_name == 'release' || + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) runs-on: ubuntu-latest env: DOCKER_BUILDKIT: "1" @@ -73,7 +77,10 @@ jobs: publish: # Only run if it's a push event or if it's a PR from this repository - if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository + if: | + github.event_name == 'push' || + github.event_name == 'release' || + (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository) needs: [verify] runs-on: ubuntu-latest steps: