Skip to content

Commit

Permalink
change PR deployment behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
gpmayorga committed Mar 25, 2024
1 parent ad19fc5 commit 31222a0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 18 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/dev-n-ffprod-deploys.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: dev-n-ffprod-deploys
on:
push:
branches: main
pull_request:
# paths:
# - '.github/workflows/main-branch-deploys.yml'

jobs:
main_branch:
if: github.ref == 'refs/heads/main'
name: deploy-${{ matrix.env }}
strategy:
matrix:
env: ['ff-prod', 'development']
uses: ./.github/workflows/deploy_all.yml
secrets: inherit
with:
environment: ${{ matrix.env }}

pull_request:
if: github.event_name == 'pull_request'
uses: ./.github/workflows/deploy_all.yml
secrets: inherit
with:
environment: 'ff-prod'
18 changes: 0 additions & 18 deletions .github/workflows/main-branch-deploys.yml

This file was deleted.

0 comments on commit 31222a0

Please sign in to comment.