Skip to content

Commit

Permalink
Fix check CI && GITHUB_ACTIONS for GITHUB_OUTPUT to only GITHUB_ACTIONS
Browse files Browse the repository at this point in the history
Signed-off-by: Viacheslav Bocharov <[email protected]>
  • Loading branch information
adeepn authored and igorpecovnik committed Jul 4, 2024
1 parent 7875fce commit d73c4ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions/general/github-actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d73c4ce

Please sign in to comment.