Fix check CI && GITHUB_ACTIONS for GITHUB_OUTPUT to only GITHUB_ACTIONS

Signed-off-by: Viacheslav Bocharov <adeep@lexina.in>
This commit is contained in:
Viacheslav Bocharov 2024-06-24 11:33:01 +03:00 committed by Igor
parent 7875fce1e9
commit d73c4cefab

View File

@ -9,7 +9,7 @@
function github_actions_add_output() {
# if CI is not GitHub Actions, do nothing
if [[ "${CI}" != "true" ]] && [[ "${GITHUB_ACTIONS}" != "true" ]]; then
if [[ "${GITHUB_ACTIONS}" != "true" ]]; then
display_alert "Not running in GitHub Actions, not adding output" "'${*}'" "debug"
return 0
fi