Skip to content

Commit

Permalink
Update production.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
meddhiaka authored Jul 26, 2024
1 parent fb87212 commit 18adfea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ env:
# that is why i commented the push branches main sub tree ...

on:
#push:
#branches:
#- main
pull_request:
types: [closed]
push:
branches:
- main
#pull_request:
#types: [closed]

jobs:
DeployProduction:
# so it will run this workflow only new pull request is merged into main
# branch coming from another secondary branch ...
if: github.event.pull_request.merged == true && github.event.base.ref == "main"
#if: github.event.pull_request.merged == true && github.event.base.ref == "main"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 18adfea

Please sign in to comment.