From 35ba94246fff5eece082cb4befdeb23c49ae154b Mon Sep 17 00:00:00 2001 From: Kody Stribrny Date: Mon, 30 Mar 2026 16:38:39 -0700 Subject: [PATCH] Copy over generated SBOM files The SBOM generator currently outputs the files at the workspace root. --- .github/workflows/auto-release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 664f5db71..3759e5f48 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -176,11 +176,17 @@ jobs: env: VERSION_NUMBER: ${{ github.event.inputs.version_number }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - working-directory: ./local_kernel run: | + # SBOM generator writes files to the workspace root — copy them into the repo + cp *SPDX* ./local_kernel/ 2>/dev/null || cp *spdx* ./local_kernel/ 2>/dev/null || true + cd ./local_kernel git add . - git commit -m '[AUTO][RELEASE]: Update SBOM' - git push -u origin "$VERSION_NUMBER" + if git diff --cached --quiet; then + echo "No SBOM changes to commit." + else + git commit -m '[AUTO][RELEASE]: Update SBOM' + git push -u origin "$VERSION_NUMBER" + fi echo "COMMIT_SHA_2=$(git rev-parse HEAD)" >> $GITHUB_ENV - name: Release