feat: set pr listener
This commit is contained in:
parent
b50acf1585
commit
87e1c6c90a
@ -1,12 +1,19 @@
|
|||||||
name: Deploy Production Server
|
name: Deploy Production Server
|
||||||
|
|
||||||
# Only run the workflow when a PR is merged on main and closed
|
# Only run the workflow when a PR is merged on main and closed
|
||||||
on: [push]
|
on:
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
|
branches:
|
||||||
|
- 'master'
|
||||||
|
|
||||||
# Here we check that the PR was correctly merged to main
|
# Here we check that the PR was correctly merged to main
|
||||||
jobs:
|
jobs:
|
||||||
if_merged:
|
if_merged:
|
||||||
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user