Skip to content

Commit 69e97f9

Browse files
authored
Audience accounts/sc 104607/update GitHub actions to remove deprecation (#1)
* fix: update set output to prevent warning https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
1 parent 4529314 commit 69e97f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/promtool_check.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ ${check_output}
4343
echo "${check_payload}" | curl -s -S -H "Authorization: token ${GITHUB_ACCESS_TOKEN}" --header "Content-Type: application/json" --data @- "${check_comment_url}" > /dev/null
4444
fi
4545

46-
echo ::set-output name=promtool_output::${check_output}
46+
# Updated to new GITHUB_OUTPUT format https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
47+
# Modified to support multi-line output https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings
48+
echo "promtool_output<<EOF" >> "$GITHUB_OUTPUT"
49+
echo "${check_output}" >> "$GITHUB_OUTPUT"
50+
echo "EOF" >> "$GITHUB_OUTPUT"
4751
exit ${check_exit_code}
4852
}

0 commit comments

Comments
 (0)