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).
This commit is contained in:
Georg Lauterbach 2022-09-21 10:18:18 +02:00 committed by GitHub
parent 32c508aa2a
commit 7fe6748637
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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