ci: working on snaps

pull/8560/head
Mitchell Hashimoto 2025-09-07 13:32:54 -07:00
parent e1627a80e9
commit 7582035a46
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
2 changed files with 13 additions and 3 deletions

View File

@ -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: |

View File

@ -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 }}