Skip to content

Commit 0987bd1

Browse files
authored
Update trigger-deploy-on-merge.yml (#86)
Trigger only on pull request merge This pull request makes a small change to the deployment workflow, ensuring that the `deploy-frontend` job only runs when a pull request is merged. * Added a conditional (`if: github.event.pull_request.merged == true`) to the `deploy-frontend` job in `.github/workflows/trigger-deploy-on-merge.yml` to prevent deployments on unmerged pull requests.
2 parents eefd61d + aaf24ef commit 0987bd1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/trigger-deploy-on-merge.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99

1010
jobs:
1111
deploy-frontend:
12+
if: github.event.pull_request.merged == true
1213
runs-on: ubuntu-latest
1314
env:
1415
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)