Skip to content

Commit 8d6da1b

Browse files
authored
Merge pull request #93 from ccagml/main
update
2 parents cd2e560 + 85ab8ac commit 8d6da1b

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/release.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,28 @@ on:
55
branches: [release]
66
inputs:
77
tag:
8-
description: "Release Tag"
9-
required: true
8+
description: "版本号"
9+
type: string
10+
change:
11+
description: "提交内容"
12+
type: string
1013

1114
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
1230
linux:
1331
name: Linux
1432
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)