Skip to content

update #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 20 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,28 @@ on:
branches: [release]
inputs:
tag:
description: "Release Tag"
required: true
description: "版本号"
type: string
change:
description: "提交内容"
type: string

jobs:
jobA:
name: Linux
runs-on: ubuntu-latest
if: github.event.inputs.tag != '' && github.event.inputs.change != ''
steps:
- uses: actions/checkout@v2
- run: |
ls
sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json
echo -e "## version ${{ github.event.inputs.tag }}\n\n- ${{ github.event.inputs.change }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
git config user.name ccagml
git config user.email [email protected]
git add .
git commit -m ${{ github.event.inputs.change }}
git push
linux:
name: Linux
runs-on: ubuntu-latest
Expand Down