summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-09-07 13:32:54 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-09-07 13:32:58 -0700
commit7582035a466feeebdfd5d5a2263a7295be359ae8 (patch)
tree41bf6dc0d1b4c7f9885272b0dc09bf71a2bcab47 /.github
parente1627a80e952afce5144d1f826e2ef35cd224cc3 (diff)
ci: working on snaps
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/snap.yml10
-rw-r--r--.github/workflows/test.yml6
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 }}