Skip to content

Commit

Permalink
ci: use gh cli to tirgger publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Aug 28, 2024
1 parent 1c9fbbf commit bf281d7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
version-or-publish:
runs-on: ubuntu-latest

permissions:
actions: write # required for workflow_dispatch

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -44,7 +47,6 @@ jobs:
if: |
steps.covector.outputs.successfulPublish == 'true' &&
contains(steps.covector.outputs.packagesPublished, 'tauri-vscode')
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
event-type: publish
run: gh workflow run 1813401 -r dev
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ name: Publish Extension

on:
workflow_dispatch:
repository_dispatch:
types: [publish]

jobs:
publish:
Expand Down

0 comments on commit bf281d7

Please sign in to comment.