File tree 1 file changed +20
-2
lines changed
1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change 5
5
branches : [release]
6
6
inputs :
7
7
tag :
8
- description : " Release Tag"
9
- required : true
8
+ description : " 版本号"
9
+ type : string
10
+ change :
11
+ description : " 提交内容"
12
+ type : string
10
13
11
14
jobs :
15
+ jobA :
16
+ name : Linux
17
+ runs-on : ubuntu-latest
18
+ if : github.event.inputs.tag != '' && github.event.inputs.change != ''
19
+ steps :
20
+ - uses : actions/checkout@v2
21
+ - run : |
22
+ ls
23
+ sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json
24
+ echo -e "## version ${{ github.event.inputs.tag }}\n\n- ${{ github.event.inputs.change }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
25
+ git config user.name ccagml
26
+ git config user.email [email protected]
27
+ git add .
28
+ git commit -m ${{ github.event.inputs.change }}
29
+ git push
12
30
linux :
13
31
name : Linux
14
32
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments