Skip to content

Commit

Permalink
Changed pull request merge condition (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandhya1874 authored Dec 4, 2024
1 parent 89afee9 commit b7b7759
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

deploy_to_dev_on_push_to_main:
name: Deploy to dev on push to main
if: github.event_name == 'pull_request' && github.base_ref == 'refs/heads/main' && github.event.action == 'closed' && github.event.pull_request.merged == true
if: github.event.pull_request.merged == true && github.base_ref == 'refs/heads/main'
uses: ./.github/workflows/deploy.yml
needs:
- build
Expand All @@ -62,7 +62,7 @@ jobs:

deploy_to_prod_on_push_to_main:
name: Deploy to prod on push to main
if: github.event_name == 'pull_request' && github.base_ref == 'refs/heads/main' && github.event.action == 'closed' && github.event.pull_request.merged == true
if: github.event.pull_request.merged == true && github.base_ref == 'refs/heads/main'
uses: ./.github/workflows/deploy.yml
needs:
- build
Expand Down

0 comments on commit b7b7759

Please sign in to comment.