File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 45
45
git commit -m ${{ github.event.inputs.change }}
46
46
git push
47
47
- name : needpr
48
- if : ${{ github.event. inputs.pr }}
48
+ if : ${{ inputs.pr != '' && inputs.pr || true }}
49
49
run : |
50
50
gh pr create -B main --title 'Merge release${{ github.event.inputs.tag }} into main' --body 'Created by Github action'
51
51
@@ -58,13 +58,19 @@ jobs:
58
58
needs : first
59
59
runs-on : ubuntu-latest
60
60
timeout-minutes : 30
61
- if : ${{ inputs.mt }}
61
+ if : ${{ inputs.mt != '' && inputs.mt || true }}
62
62
steps :
63
63
- uses : actions/checkout@v2
64
64
- name : updatepackage
65
65
if : github.event.inputs.tag != ''
66
66
run : |
67
67
sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json
68
+
69
+ - name : change
70
+ if : github.event.inputs.change != ''
71
+ run : |
72
+ echo -e "## version ${{ github.event.inputs.tag }}\n\n- ${{ github.event.inputs.change }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
73
+
68
74
- name : Setup Node.js environment
69
75
uses : actions/setup-node@v2
70
76
with :
80
86
run : npm i -g vsce
81
87
82
88
- name : Publish
83
- if : ${{ inputs.mt }}
89
+ if : ${{ inputs.mt != '' && inputs.mt || true }}
84
90
run : vsce publish -p ${{ secrets.VSCE_PAT }}
You can’t perform that action at this time.
0 commit comments