mirror of
https://github.com/tauri-apps/tauri-vscode.git
synced 2026-01-31 00:35:18 +01:00
ci: use gh cli to tirgger publish workflow
This commit is contained in:
@@ -13,6 +13,9 @@ jobs:
|
|||||||
version-or-publish:
|
version-or-publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
actions: write # required for workflow_dispatch
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
@@ -44,7 +47,6 @@ jobs:
|
|||||||
if: |
|
if: |
|
||||||
steps.covector.outputs.successfulPublish == 'true' &&
|
steps.covector.outputs.successfulPublish == 'true' &&
|
||||||
contains(steps.covector.outputs.packagesPublished, 'tauri-vscode')
|
contains(steps.covector.outputs.packagesPublished, 'tauri-vscode')
|
||||||
uses: peter-evans/repository-dispatch@v1
|
run: gh workflow run 1813401 -r dev
|
||||||
with:
|
env:
|
||||||
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
event-type: publish
|
|
||||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
@@ -6,8 +6,6 @@ name: Publish Extension
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
repository_dispatch:
|
|
||||||
types: [publish]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
|
|||||||
Reference in New Issue
Block a user