Browse Source

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

Lucas Fernandes Nogueira 2 years ago
parent
commit
57fa569161

+ 2 - 1
.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 }}" }'

+ 2 - 0
.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 }}

+ 3 - 2
.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