File tree 1 file changed +4
-7
lines changed
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 12
12
type : string
13
13
pr :
14
14
description : " 需要合并提交"
15
- type : boolean
16
- default : false
15
+ type : string
17
16
mt :
18
17
description : " 提交到市场"
19
- type : boolean
20
- default : false
18
+ type : string
21
19
22
20
jobs :
23
21
first :
45
43
git commit -m ${{ github.event.inputs.change }}
46
44
git push
47
45
- name : needpr
48
- if : ${{ inputs.pr != '' && inputs.pr || true }}
46
+ if : github.event. inputs.pr != ''
49
47
run : |
50
48
gh pr create -B main --title 'Merge release${{ github.event.inputs.tag }} into main' --body 'Created by Github action'
51
49
58
56
needs : first
59
57
runs-on : ubuntu-latest
60
58
timeout-minutes : 30
61
- if : ${{ inputs.mt != '' && inputs.mt || true }}
59
+ if : github.event. inputs.mt != ''
62
60
steps :
63
61
- uses : actions/checkout@v2
64
62
- name : updatepackage
86
84
run : npm i -g vsce
87
85
88
86
- name : Publish
89
- if : ${{ inputs.mt != '' && inputs.mt || true }}
90
87
run : vsce publish -p ${{ secrets.VSCE_PAT }}
You can’t perform that action at this time.
0 commit comments