File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 43
43
secrets : inherit
44
44
with :
45
45
target_env : ${{ github.ref == 'refs/heads/master' && 'production' || github.ref == 'refs/heads/development' && 'development' || 'invalid' }}
46
- node-version : " 22.4.1"
46
+ node-version : " 22.4.1"
47
+ skip_deploy : ${{ github.event_name == 'pull_request' }} # skip deployment if it's a pull request
Original file line number Diff line number Diff line change 16
16
description : ' The deployment environment e.g. production or development'
17
17
required : true
18
18
type : string
19
+ skip_deploy :
20
+ description : ' Skip the deploy step (true/false)'
21
+ required : true
22
+ type : boolean
19
23
20
24
jobs :
21
25
lint :
81
85
trigger-deploy :
82
86
needs : build
83
87
name : Deploy
88
+ if : ${{ inputs.skip_deploy == false }}
84
89
uses : ./.github/workflows/deploy.yml
85
90
secrets : inherit
86
91
with :
You can’t perform that action at this time.
0 commit comments