From 7fe67486374ca1ac281d862df34c8264650d3323 Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Wed, 21 Sep 2022 10:18:18 +0200 Subject: [PATCH] add `outputs` to `workflow_call` on `generic_build` (#2780) Looking at https://docs.github.com/en/actions/using-workflows/reusing-workflows#using-outputs-from-a-reusable-workflow, we can see that we need to manually set the outputs for a whole generic workflow. This commit fixes an issue where the cache key was not set properly as the input was empty (because the output of the previous job was not actually set). --- .github/workflows/generic_build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/generic_build.yml b/.github/workflows/generic_build.yml index 67542b9c..9fd23e6b 100644 --- a/.github/workflows/generic_build.yml +++ b/.github/workflows/generic_build.yml @@ -7,6 +7,11 @@ on: required: false type: string default: linux/amd64 + outputs: + build-cache-key: + description: The cache key to use when restoring an image later + value: ${{ jobs.build-image.outputs.build-cache-key }} + permissions: contents: read