From 5a9711dc90928b0a5c1865cf4b968255c9a5462b Mon Sep 17 00:00:00 2001 From: Ben Reedy Date: Fri, 18 Feb 2022 22:29:34 +1000 Subject: [PATCH] Run CI on pushes to master branch Required to keep container image (with "latest" tag) up to date. Will also ensure the master branch is healthy after PR merges. Signed-off-by: Ben Reedy --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a675e10..d7178a6e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,8 +1,11 @@ name: windows_exporter CI/CD -# Trigger on pull requests and releases +# Trigger on pull requests, releases and pushes to master branch. # Deployments will only occur for releases (see `if` clauses in the build job). on: + push: + branches: + - master pull_request: branches: - master @@ -170,7 +173,7 @@ jobs: promu checksum output\ - name: Login to GitHub container registry - if: startsWith(github.ref, 'refs/tags/') + if: ${{ github.event_name != 'pull_request' }} uses: docker/login-action@v1 with: registry: ghcr.io