From fc33c4218cf156460efcb7545b6ab4d8b43ce2d2 Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Wed, 14 Dec 2022 12:17:43 -0300 Subject: [PATCH] fix(ci): use client-payload input to trigger cli.js publish workflow --- .github/workflows/covector-version-or-publish-next.yml | 2 +- .github/workflows/covector-version-or-publish.yml | 2 +- .github/workflows/publish-cli-js.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml index 2c68d56f2..19269c16a 100644 --- a/.github/workflows/covector-version-or-publish-next.yml +++ b/.github/workflows/covector-version-or-publish-next.yml @@ -77,7 +77,7 @@ jobs: token: ${{ secrets.ORG_TAURI_BOT_PAT }} repository: tauri-apps/tauri event-type: publish-clijs - inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' + client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' - name: Trigger cli.rs publishing workflow if: | diff --git a/.github/workflows/covector-version-or-publish.yml b/.github/workflows/covector-version-or-publish.yml index 98556c0e0..054493427 100644 --- a/.github/workflows/covector-version-or-publish.yml +++ b/.github/workflows/covector-version-or-publish.yml @@ -124,7 +124,7 @@ jobs: token: ${{ secrets.ORG_TAURI_BOT_PAT }} repository: tauri-apps/tauri event-type: publish-clijs - inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' + client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }' - name: Trigger cli.rs publishing workflow if: | diff --git a/.github/workflows/publish-cli-js.yml b/.github/workflows/publish-cli-js.yml index f30248b1c..e7f2ed6ff 100644 --- a/.github/workflows/publish-cli-js.yml +++ b/.github/workflows/publish-cli-js.yml @@ -397,4 +397,4 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }} - RELEASE_ID: ${{ github.event.inputs.releaseId }} + RELEASE_ID: ${{ github.event.client_payload.releaseId || github.event.inputs.releaseId }}