Skip to content

Commit

Permalink
Revert "ci: trigger push build action after tag creation"
Browse files Browse the repository at this point in the history
This reverts commit c53304c.

After experimenting with this release, we have found that the
`workflow_run` action source doesn't work for branches. The
documentation was updated with this PR and has more detail.
github/docs#531

For now, we will revert back to using on.push.tags = ["v*"]

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
(cherry picked from commit 30e02c1)
  • Loading branch information
BlaineEXE authored and mergify-bot committed Nov 4, 2021
1 parent 4bfbb83 commit e5cca41
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/push-build.yaml
Expand Up @@ -4,9 +4,8 @@ on:
branches:
- master
- release-*
workflow_run:
workflows: ["Tag"]
types: [completed]
tags:
- v*

defaults:
run:
Expand All @@ -16,12 +15,7 @@ defaults:
jobs:
push-image-to-container-registry:
runs-on: ubuntu-18.04
# github.repository == 'rook/rook': for running the test only in 'rook/rook' repo
# github.event_name == 'push': This is for any push to master or release branches
# github.event.workflow_run.conclusion == 'success': For the tagged workflow completion
if: |
github.repository == 'rook/rook' &&
(github.event_name == 'push' || github.event.workflow_run.conclusion == 'success')
if: github.repository == 'rook/rook'
steps:
- name: checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit e5cca41

Please sign in to comment.