Skip to content

Commit

Permalink
fix(ci): trigger CI on published releases
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 27, 2021
1 parent 77e4317 commit b9a9319
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: CI
on:
release:
types:
- published
push:
branches:
- master
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit b9a9319

Please sign in to comment.