Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Commit d773ca2

Browse files
authored
Merge pull request #145 from philips-software/set-output
Replace deprecated set-output
2 parents ae2d7df + a109608 commit d773ca2

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

container_digest.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ docker pull "$registry_url_prefix"/"$imagename":"$basetag"
4949
echo "Getting digest for $registry_url_prefix/$imagename:$basetag"
5050
containerdigest=$(docker inspect "$registry_url_prefix"/"$imagename":"$basetag" --format '{{ index .RepoDigests 0 }}' | cut -d '@' -f 2)
5151
echo "found: ${containerdigest}"
52-
echo "::set-output name=container-digest::${containerdigest}"
52+
echo "{container-digest}={${containerdigest}}" >> "$GITHUB_OUTPUT"
5353

5454
echo "--------------------------------------------------------------------------------------------"
5555

5656
echo "Getting tags"
5757
containertags=$(docker inspect "$registry_url_prefix"/"$imagename":"$basetag" --format '{{ join .RepoTags "\n" }}' | sed 's/.*://' | paste -s -d ',' -)
5858
echo "found: ${containertags}"
59-
echo "::set-output name=container-tags::${containertags}"
59+
echo "{container-tags}={${containertags}}" >> "$GITHUB_OUTPUT"
6060

6161
echo "============================================================================================"
6262
echo "Finished getting docker digest and tags"
@@ -107,7 +107,7 @@ then
107107
echo "-------------------------------------------------------------------------------------------"
108108
echo " provenance.json "
109109
echo "-------------------------------------------------------------------------------------------"
110-
echo "::set-output name=slsa-provenance-file::provenance.json"
110+
echo "{slsa-provenance-file}={provenance.json}" >> "$GITHUB_OUTPUT"
111111

112112
echo "============================================================================================"
113113
echo "Finished getting SLSA Provenance"
@@ -142,7 +142,7 @@ then
142142
echo "Remove formatting"
143143
jq -c . sbom-spdx-formatted.json > sbom-spdx.json
144144

145-
echo "::set-output name=sbom-file::sbom-spdx.json"
145+
echo "{sbom-file}={sbom-spdx.json}" >> "$GITHUB_OUTPUT"
146146

147147
echo "============================================================================================"
148148
echo "Finished getting SBOM"

docker_build_and_push.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ if [ "$#" -lt 4 ]; then
1313
fi
1414

1515
push() {
16-
echo "::set-output name=push-indicator::true"
16+
echo "{push-indicator}={true}" >> "$GITHUB_OUTPUT"
1717

1818
"${FOREST_DIR}"/docker_push.sh "$@"
1919
"${FOREST_DIR}"/container_digest.sh "$@"

0 commit comments

Comments
 (0)