From 57fa569161df6b5bb240b792fc924e2bae10dc07 Mon Sep 17 00:00:00 2001 From: Lucas Fernandes Nogueira Date: Wed, 12 Apr 2023 07:32:23 -0700 Subject: [PATCH] fix(ci): send ref to publish CLI workflows (#6674) --- .github/workflows/covector-version-or-publish-next.yml | 3 ++- .github/workflows/publish-cli-js.yml | 2 ++ .github/workflows/publish-cli-rs.yml | 5 +++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/covector-version-or-publish-next.yml b/.github/workflows/covector-version-or-publish-next.yml index e6e7364bd..cd56feadd 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 - 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 }}" }' diff --git a/.github/workflows/publish-cli-js.yml b/.github/workflows/publish-cli-js.yml index 7caa4e14d..1c3021ed3 100644 --- a/.github/workflows/publish-cli-js.yml +++ b/.github/workflows/publish-cli-js.yml @@ -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 }} diff --git a/.github/workflows/publish-cli-rs.yml b/.github/workflows/publish-cli-rs.yml index 72850500a..304e2deca 100644 --- a/.github/workflows/publish-cli-rs.yml +++ b/.github/workflows/publish-cli-rs.yml @@ -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