From c2f90c39bb822e189cc745f5003a5c4e53a6facc Mon Sep 17 00:00:00 2001 From: Dragomir Penev Date: Mon, 27 Nov 2023 17:29:30 +0200 Subject: [PATCH] Fix SBOM name --- .github/workflows/sbom.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sbom.yaml b/.github/workflows/sbom.yaml index a44e31d..24791fa 100644 --- a/.github/workflows/sbom.yaml +++ b/.github/workflows/sbom.yaml @@ -15,7 +15,7 @@ jobs: - name: Install Syft run: | curl -sSfL https://raw.githubusercontent.com/anchore/syft/4fc17edd146af34ab06f5b0443ef8ddac3aaf076/install.sh | sh -s -- -b /usr/local/bin - - name: Set tag + - name: Set version run: | version=$(yq '(.version|split("-"))[0]' rockcraft.yaml) base=$(yq '(.base|split(":"))[1]' rockcraft.yaml) @@ -28,5 +28,5 @@ jobs: - name: Upload SBOM uses: actions/upload-artifact@v3 with: - path: "charmed-postgresql_${{env.tag}}_amd64.rock.spdx.json" - name: charmed-postgresql_${{env.tag}}_amd64.rock.spdx.json + path: "charmed-postgresql_${{env.version}}_amd64.rock.spdx.json" + name: charmed-postgresql_${{env.version}}_amd64.rock.spdx.json