Skip to content

Commit

Permalink
Only deploy to a dithub envirionment when the preview label is set
Browse files Browse the repository at this point in the history
  • Loading branch information
oscrx committed Aug 7, 2023
1 parent 3c3e01b commit 1243b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ jobs:
contents: write
steps:
- name: Branch deploy info
if: ${{ github.event_name == 'pull_request' }}
run: echo "ArgoCD might already be at it if the 'preview' label is set."
if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'preview') }}
run: echo "ArgoCD will try to update this deployment shortly."

- name: Checkout
if: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit 1243b25

Please sign in to comment.