Skip to content

Commit 874550d

Browse files
authored
Merge pull request #120 from ccagml/main
新的
2 parents 998f252 + e10dc75 commit 874550d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
git commit -m ${{ github.event.inputs.change }}
4646
git push
4747
- name: needpr
48-
if: ${{ github.event.inputs.pr }}
48+
if: ${{ inputs.pr != '' && inputs.pr || true }}
4949
run: |
5050
gh pr create -B main --title 'Merge release${{ github.event.inputs.tag }} into main' --body 'Created by Github action'
5151
@@ -58,13 +58,19 @@ jobs:
5858
needs: first
5959
runs-on: ubuntu-latest
6060
timeout-minutes: 30
61-
if: ${{ inputs.mt }}
61+
if: ${{ inputs.mt != '' && inputs.mt || true }}
6262
steps:
6363
- uses: actions/checkout@v2
6464
- name: updatepackage
6565
if: github.event.inputs.tag != ''
6666
run: |
6767
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+
6874
- name: Setup Node.js environment
6975
uses: actions/setup-node@v2
7076
with:
@@ -80,5 +86,5 @@ jobs:
8086
run: npm i -g vsce
8187

8288
- name: Publish
83-
if: ${{ inputs.mt }}
89+
if: ${{ inputs.mt != '' && inputs.mt || true }}
8490
run: vsce publish -p ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)