Skip to content

Commit 9e8f7a0

Browse files
Remove set-output
1 parent 8ec256f commit 9e8f7a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/generate_sbom.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,16 @@ jobs:
7979
run: |
8080
# Strip out nondeterministic SBOM fields and save to temp file
8181
jq 'del(.version, .metadata.timestamp, .metadata.tools.services[].version)' sbom.json > ${{runner.temp}}/sbom.generated.cdx.json
82+
# diff the temp SBOM files, save output to variable, supress exit code
8283
RESULT=$(diff --brief ${{runner.temp}}/sbom.existing.cdx.json ${{runner.temp}}/sbom.generated.cdx.json || true)
8384
# Set the output variable
84-
echo "::set-output name=result::$RESULT"
85+
echo "result=$RESULT" >> $GITHUB_OUTPUT
8586
8687
- name: Generate pull request content and notice, if SBOM has changed
8788
if: ${{ steps.sbom_diff.outputs.result }}
8889
run: |
8990
printf "SBOM updated after commit ${{ github.sha }}.\n\n" | cat - ${{runner.temp}}/warnings.txt > ${{runner.temp}}/pr_body.txt
90-
echo "::notice SBOM has changed"
91+
echo "::notice title=SBOM-Diff::SBOM has changed"
9192
9293
- name: Open Pull Request, if SBOM has changed
9394
if: ${{ steps.sbom_diff.outputs.result }}

0 commit comments

Comments
 (0)