From 309aad7bbf8af77bd712677bce580ca1e32bc977 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 18 Jan 2023 22:04:57 -0300 Subject: [PATCH] fix(ci): dispatcher for cli.js/cli.rs publish workflow --- .github/workflows/publish-hotfix.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-hotfix.yml b/.github/workflows/publish-hotfix.yml index 380c6a7befbe..84ea0c3e2a6b 100644 --- a/.github/workflows/publish-hotfix.yml +++ b/.github/workflows/publish-hotfix.yml @@ -53,6 +53,17 @@ jobs: contains(steps.covector.outputs.packagesPublished, 'cli.rs') uses: peter-evans/repository-dispatch@v1 with: - token: ${{ secrets.TAURI_BOT_PAT }} + token: ${{ secrets.ORG_TAURI_BOT_PAT }} repository: tauri-apps/tauri event-type: publish-clijs + inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' + + - name: Trigger cli.rs publishing workflow + if: | + steps.covector.outputs.successfulPublish == 'true' && + contains(steps.covector.outputs.packagesPublished, 'cli.rs') + uses: peter-evans/repository-dispatch@v1 + with: + token: ${{ secrets.ORG_TAURI_BOT_PAT }} + repository: tauri-apps/tauri + event-type: publish-clirs