From 1e73d82b44b2ca882168a02d14f0004c6a1099df Mon Sep 17 00:00:00 2001 From: Doug Goldstein Date: Thu, 7 Nov 2024 12:25:01 -0600 Subject: [PATCH] ci: fix to build on containers on main merge We should be building their containers when things are merged into main and cleaning them up on PRs being closed. --- .github/workflows/containers.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/containers.yaml b/.github/workflows/containers.yaml index 05a06e3e3..0d973f293 100644 --- a/.github/workflows/containers.yaml +++ b/.github/workflows/containers.yaml @@ -20,7 +20,7 @@ on: jobs: openstack: - if: github.event_name == 'pull_request' && github.event.action != 'closed' + if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.action != 'closed') runs-on: ubuntu-latest strategy: @@ -68,7 +68,7 @@ jobs: annotations: ${{ steps.meta.outputs.annotations }} dnsmasq: - if: github.event_name == 'pull_request' && github.event.action != 'closed' + if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.action != 'closed') runs-on: ubuntu-latest steps: @@ -109,6 +109,7 @@ jobs: labels: ${{ steps.meta.outputs.labels }} workflows: + if: github.event_name != 'pull_request' || (github.event_name == 'pull_request' && github.event.action != 'closed') runs-on: ubuntu-latest strategy: