From 7582035a466feeebdfd5d5a2263a7295be359ae8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Sun, 7 Sep 2025 13:32:54 -0700 Subject: [PATCH] ci: working on snaps --- .github/workflows/snap.yml | 10 ++++++++-- .github/workflows/test.yml | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/snap.yml b/.github/workflows/snap.yml index 007f70650..dbb13ae95 100644 --- a/.github/workflows/snap.yml +++ b/.github/workflows/snap.yml @@ -1,7 +1,11 @@ on: workflow_dispatch: inputs: - source-tarball-id: + source-run-id: + description: run id of the workflow that generated the artifact + required: true + type: string + source-artifact-id: description: source tarball built during build-dist required: true type: string @@ -24,7 +28,9 @@ jobs: - name: Download Source Tarball Artifacts uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 with: - artifact-ids: ${{ inputs.source-tarball-id }} + run-id: ${{ inputs.source-run-id }} + artifact-ids: ${{ inputs.source-artifact-id }} + github-token: ${{ github.token }} - name: Extract tarball run: | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 055bcf372..dfd81b522 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -281,7 +281,11 @@ jobs: - name: Trigger Snap workflow run: | - gh workflow run snap.yml --ref ${{ github.ref_name || 'main' }} --field source-tarball-id=${{ needs.build-dist.outputs.artifact-id }} + gh workflow run \ + snap.yml \ + --ref ${{ github.ref_name || 'main' }} \ + --field source-run-id=${{ github.run_id }} \ + --field source-artifact-id=${{ needs.build-dist.outputs.artifact-id }} env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}