Skip to content

Commit

Permalink
Change the automatic deployment trigger from PR to push
Browse files Browse the repository at this point in the history
  • Loading branch information
ravidalon committed Nov 25, 2024
1 parent d44c7e0 commit b39e172
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/automatic-deployment.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
name: "Automatic Deployment"

on:
pull_request:
push:
branches:
- main
- dev
types:
- closed

jobs:
deploy-prod:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
if: github.ref_name == 'main'
uses: ./.github/workflows/deployment-qmod.yml
with:
deploy-mode: production
secrets: inherit

deploy-dev:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'dev'
if: github.ref_name == 'dev'
uses: ./.github/workflows/deployment-qmod.yml
with:
deploy-mode: staging
Expand Down

0 comments on commit b39e172

Please sign in to comment.