Skip to content

Commit

Permalink
Merge pull request sclorg#3 from jamacku/loging
Browse files Browse the repository at this point in the history
Improve logging by using ``::error::`` and ``::warning``
  • Loading branch information
phracek committed Feb 6, 2023
2 parents 7507bee + 2a95e02 commit 2b1b5cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ runs:
elif [ "${{ steps.vars.outputs.api_key }}" == "TF_PRIVATE_API_KEY" ]; then
echo "value=${{ inputs.private_api_key }}" >> "$GITHUB_OUTPUT"
else
echo "err, invalid API_KEY value" >&2
echo "::error::invalid API_KEY value" >&2
exit 2
fi
Expand Down
6 changes: 3 additions & 3 deletions export_variables.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ all_os="$public_ranch $private_ranch"
os_test="$1" # options: centos7, c9s, fedora, rhel7, rhel8, rhel9, rhel9-unsubscribed
test_case="$2" # options: container, openshift
if [ -z "$os_test" ] || ! echo "$all_os" | grep -q "$os_test" ; then
echo "os_test '$os_test' is not valid"
echo "choose one of: $all_os"
echo "::error::os_test '$os_test' is not valid"
echo "::warning::choose one of: $all_os"
exit 5
fi

Expand All @@ -29,7 +29,7 @@ elif [ "$test_case" = openshift ] ; then
test_name="test-openshift-4"
fi
else
echo "test_case '$test_case' is not valid"
echo "::error::test_case '$test_case' is not valid"
exit 5
fi

Expand Down

0 comments on commit 2b1b5cf

Please sign in to comment.