From c2df15dfd101dc2f7bcce41c769e5fac33520ecc Mon Sep 17 00:00:00 2001 From: Victor Lyuboslavsky Date: Wed, 8 May 2024 14:58:56 -0500 Subject: [PATCH] In GitOps workflow, do dry run on pull request. (#18854) --- .github/workflows/dogfood-gitops.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/dogfood-gitops.yml b/.github/workflows/dogfood-gitops.yml index 3353e27d51..4cead2ddf2 100644 --- a/.github/workflows/dogfood-gitops.yml +++ b/.github/workflows/dogfood-gitops.yml @@ -7,8 +7,17 @@ on: paths: - 'it-and-security/**' - '.github/workflows/dogfood-gitops.yml' + pull_request: + paths: + - 'it-and-security/**' + - '.github/workflows/dogfood-gitops.yml' workflow_dispatch: # allows manual triggering +# Prevent concurrent runs of this workflow, but allow all runs to finish. +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: false + defaults: run: shell: bash @@ -48,6 +57,7 @@ jobs: uses: ./fleet-gitops/.github/gitops-action with: working-directory: ${{ github.workspace }}/fleet-gitops + dry-run-only: ${{ github.event_name == 'pull_request' && 'true' || 'false' }} env: FLEET_GITOPS_DIR: ${{ github.workspace }}/it-and-security FLEET_URL: https://dogfood.fleetdm.com