fix(ci): add inputs to publish-cli-js (#5217)

This commit is contained in:
Lucas Fernandes Nogueira 2022-09-16 16:16:29 -03:00 committed by GitHub
parent e4292ce7be
commit 7950fcb9a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -171,7 +171,7 @@ jobs:
token: ${{ secrets.TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-clijs
client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }'
inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }'
- name: Trigger cli.rs publishing workflow
if: |

View File

@ -5,6 +5,10 @@ env:
MACOSX_DEPLOYMENT_TARGET: '10.13'
on:
workflow_dispatch:
inputs:
releaseId:
description: 'ID of the cli.js release'
required: true
repository_dispatch:
types: [publish-clijs]
@ -397,4 +401,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
RELEASE_ID: ${{ github.event.client_payload.releaseId }}
RELEASE_ID: ${{ github.event.inputs.releaseId }}