fix(ci): send ref to publish CLI workflows (#6674)

This commit is contained in:
Lucas Fernandes Nogueira 2023-04-12 07:32:23 -07:00 committed by GitHub
parent f3917e7ee8
commit 57fa569161
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -77,7 +77,7 @@ jobs:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-clijs
client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}" }'
client-payload: '{"releaseId": "${{ steps.covector.outputs.cli.js-releaseId }}", "ref": "${{ github.ref }}" }'
- name: Trigger cli.rs publishing workflow
if: |
@ -88,3 +88,4 @@ jobs:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-clirs
client-payload: '{"ref": "${{ github.ref }}" }'

View File

@ -92,6 +92,8 @@ jobs:
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref || '' }}
- name: Setup node
uses: actions/setup-node@v3
if: ${{ !matrix.settings.docker }}

View File

@ -32,8 +32,9 @@ jobs:
ext: '.exe'
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
ref: ${{ github.event.client_payload.ref || '' }}
- name: 'Setup Rust'
uses: dtolnay/rust-toolchain@stable