Skip to content

Commit

Permalink
In GitOps workflow, do dry run on pull request. (#18854)
Browse files Browse the repository at this point in the history
  • Loading branch information
getvictor authored May 8, 2024
1 parent 184c41f commit c2df15d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/dogfood-gitops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c2df15d

Please sign in to comment.