File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments