build: generate the metadata file (#2302)
Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
1 parent
9169c6bacb
commit
ab3fe75537
1 file changed
+20
@@ -57,6 +57,26 @@ jobs:
|
||||
echo "::set-output name=product-version::$VERSION"
|
||||
echo "::set-output name=product-minor-version::$MINOR_VERSION"
|
||||
|
||||
generate-metadata-file:
|
||||
needs: get-product-version
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
filepath: ${{ steps.generate-metadata-file.outputs.filepath }}
|
||||
steps:
|
||||
- name: 'Checkout directory'
|
||||
uses: actions/checkout@v3
|
||||
- name: Generate metadata file
|
||||
id: generate-metadata-file
|
||||
uses: hashicorp/actions-generate-metadata@main
|
||||
with:
|
||||
version: ${{ needs.get-product-version.outputs.product-version }}
|
||||
product: ${{ env.PKG_NAME }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: metadata.json
|
||||
path: ${{ steps.generate-metadata-file.outputs.filepath }}
|
||||
|
||||
build-other:
|
||||
needs:
|
||||
- product-metadata
|
||||
|
||||
Reference in new issue
Block a user