Skip to content

Commit 35ba942

Browse files
committed
Copy over generated SBOM files
The SBOM generator currently outputs the files at the workspace root.
1 parent d43e358 commit 35ba942

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/auto-release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,17 @@ jobs:
176176
env:
177177
VERSION_NUMBER: ${{ github.event.inputs.version_number }}
178178
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
179-
working-directory: ./local_kernel
180179
run: |
180+
# SBOM generator writes files to the workspace root — copy them into the repo
181+
cp *SPDX* ./local_kernel/ 2>/dev/null || cp *spdx* ./local_kernel/ 2>/dev/null || true
182+
cd ./local_kernel
181183
git add .
182-
git commit -m '[AUTO][RELEASE]: Update SBOM'
183-
git push -u origin "$VERSION_NUMBER"
184+
if git diff --cached --quiet; then
185+
echo "No SBOM changes to commit."
186+
else
187+
git commit -m '[AUTO][RELEASE]: Update SBOM'
188+
git push -u origin "$VERSION_NUMBER"
189+
fi
184190
echo "COMMIT_SHA_2=$(git rev-parse HEAD)" >> $GITHUB_ENV
185191
186192
- name: Release

0 commit comments

Comments
 (0)