mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2026-05-12 11:42:57 -04:00
Copy over generated SBOM files
The SBOM generator currently outputs the files at the workspace root.
This commit is contained in:
parent
d43e358e86
commit
35ba94246f
1 changed files with 9 additions and 3 deletions
12
.github/workflows/auto-release.yml
vendored
12
.github/workflows/auto-release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue