mirror of
https://github.com/fleetdm/fleet
synced 2026-05-16 13:38:43 +00:00
In GitOps workflow, do dry run on pull request. (#18854)
This commit is contained in:
parent
184c41fbb6
commit
c2df15dfd1
1 changed files with 10 additions and 0 deletions
10
.github/workflows/dogfood-gitops.yml
vendored
10
.github/workflows/dogfood-gitops.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue