In GitOps workflow, do dry run on pull request. (#18854)

This commit is contained in:
Victor Lyuboslavsky 2024-05-08 14:58:56 -05:00 committed by GitHub
parent 184c41fbb6
commit c2df15dfd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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