Skip to content

new #122

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 14, 2022
Merged

new #122

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
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ on:
type: string
pr:
description: "需要合并提交"
type: boolean
default: false
type: string
mt:
description: "提交到市场"
type: boolean
default: false
type: string

jobs:
first:
Expand Down Expand Up @@ -45,7 +43,7 @@ jobs:
git commit -m ${{ github.event.inputs.change }}
git push
- name: needpr
if: ${{ inputs.pr != '' && inputs.pr || true }}
if: github.event.inputs.pr != ''
run: |
gh pr create -B main --title 'Merge release${{ github.event.inputs.tag }} into main' --body 'Created by Github action'

Expand All @@ -58,7 +56,7 @@ jobs:
needs: first
runs-on: ubuntu-latest
timeout-minutes: 30
if: ${{ inputs.mt != '' && inputs.mt || true }}
if: github.event.inputs.mt != ''
steps:
- uses: actions/checkout@v2
- name: updatepackage
Expand Down Expand Up @@ -86,5 +84,4 @@ jobs:
run: npm i -g vsce

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