mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-25 11:43:06 +03:00
fix(ci): use workflow-dispatch
action to trigger next branch workflow (#6977)
This commit is contained in:
parent
994e4fd6d9
commit
2344aea176
@ -72,20 +72,17 @@ jobs:
|
|||||||
if: |
|
if: |
|
||||||
steps.covector.outputs.successfulPublish == 'true' &&
|
steps.covector.outputs.successfulPublish == 'true' &&
|
||||||
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
||||||
uses: peter-evans/repository-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
||||||
repository: tauri-apps/tauri
|
workflow: publish-cli-js.yml
|
||||||
event-type: publish-clijs
|
inputs: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}", "ref": "${{ github.ref }}" }'
|
||||||
client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}", "ref": "${{ github.ref }}" }'
|
|
||||||
|
|
||||||
- name: Trigger cli.rs publishing workflow
|
- name: Trigger cli.rs publishing workflow
|
||||||
if: |
|
if: |
|
||||||
steps.covector.outputs.successfulPublish == 'true' &&
|
steps.covector.outputs.successfulPublish == 'true' &&
|
||||||
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
contains(steps.covector.outputs.packagesPublished, 'cli.rs')
|
||||||
uses: peter-evans/repository-dispatch@v1
|
uses: benc-uk/workflow-dispatch@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
|
||||||
repository: tauri-apps/tauri
|
workflow: publish-cli-rs.yml
|
||||||
event-type: publish-clirs
|
|
||||||
client-payload: '{"ref": "${{ github.ref }}" }'
|
|
||||||
|
4
.github/workflows/publish-cli-js.yml
vendored
4
.github/workflows/publish-cli-js.yml
vendored
@ -92,8 +92,6 @@ jobs:
|
|||||||
runs-on: ${{ matrix.settings.host }}
|
runs-on: ${{ matrix.settings.host }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: ${{ github.event.client_payload.ref || '' }}
|
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
if: ${{ !matrix.settings.docker }}
|
if: ${{ !matrix.settings.docker }}
|
||||||
@ -403,4 +401,4 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
|
||||||
RELEASE_ID: ${{ github.event.client_payload.releaseId || github.event.inputs.releaseId }}
|
RELEASE_ID: ${{ github.event.client_payload.releaseId || inputs.releaseId }}
|
||||||
|
2
.github/workflows/publish-cli-rs.yml
vendored
2
.github/workflows/publish-cli-rs.yml
vendored
@ -33,8 +33,6 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
ref: ${{ github.event.client_payload.ref || '' }}
|
|
||||||
|
|
||||||
- name: 'Setup Rust'
|
- name: 'Setup Rust'
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
Loading…
Reference in New Issue
Block a user