Skip to content

Commit 39c4466

Browse files
authored
Merge pull request #122 from ccagml/main
new
2 parents 874550d + cbbdc94 commit 39c4466

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/release.yml

+4-7
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ on:
1212
type: string
1313
pr:
1414
description: "需要合并提交"
15-
type: boolean
16-
default: false
15+
type: string
1716
mt:
1817
description: "提交到市场"
19-
type: boolean
20-
default: false
18+
type: string
2119

2220
jobs:
2321
first:
@@ -45,7 +43,7 @@ jobs:
4543
git commit -m ${{ github.event.inputs.change }}
4644
git push
4745
- name: needpr
48-
if: ${{ inputs.pr != '' && inputs.pr || true }}
46+
if: github.event.inputs.pr != ''
4947
run: |
5048
gh pr create -B main --title 'Merge release${{ github.event.inputs.tag }} into main' --body 'Created by Github action'
5149
@@ -58,7 +56,7 @@ jobs:
5856
needs: first
5957
runs-on: ubuntu-latest
6058
timeout-minutes: 30
61-
if: ${{ inputs.mt != '' && inputs.mt || true }}
59+
if: github.event.inputs.mt != ''
6260
steps:
6361
- uses: actions/checkout@v2
6462
- name: updatepackage
@@ -86,5 +84,4 @@ jobs:
8684
run: npm i -g vsce
8785

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

0 commit comments

Comments
 (0)