fix auth
This commit is contained in:
parent
480f4a768d
commit
13f3bdf30a
|
@ -6,21 +6,20 @@ echo "Notifying job status: $1"
|
||||||
# Job status: success/failure/cancelled
|
# Job status: success/failure/cancelled
|
||||||
|
|
||||||
if [ "$1" = "success" ]; then
|
if [ "$1" = "success" ]; then
|
||||||
curl -u "${INPUT_USER}:${INPUT__PASSWORD}" \
|
curl -s -u "${INPUT_USER}:${INPUT_PASSWORD}" \
|
||||||
-H "Title: Job Succeeded. ${GITHUB_REPOSITORY}/${GITHUB_REF}" \
|
-H "Title: Job Succeeded. ${GITHUB_REPOSITORY}/${GITHUB_REF}" \
|
||||||
-H "Tags: +1" \
|
-H "Tags: +1" \
|
||||||
-d "Job succeeded. See $GITHUB_SERVER_URL/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER} for details" \
|
-d "Job succeeded. See $GITHUB_SERVER_URL/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER} for details" \
|
||||||
"${INPUT_HOST}${INPUT_TOPIC}"
|
"${INPUT_HOST}${INPUT_TOPIC}"
|
||||||
elif [ "$1" = "failure" ]; then
|
elif [ "$1" = "failure" ]; then
|
||||||
curl -u "${INPUT_USER}:${INPUT__PASSWORD}" \
|
curl -s -u "${INPUT_USER}:${INPUT_PASSWORD}" \
|
||||||
-H "Title: Job FAILED. ${GITHUB_REPOSITORY}/${GITHUB_REF}" \
|
-H "Title: Job FAILED. ${GITHUB_REPOSITORY}/${GITHUB_REF}" \
|
||||||
-H "Priority: high" \
|
-H "Priority: high" \
|
||||||
-H "Tags: warning" \
|
-H "Tags: warning" \
|
||||||
-d "Job failed. See $GITHUB_SERVER_URL/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER} for details" \
|
-d "Job failed. See $GITHUB_SERVER_URL/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_NUMBER} for details" \
|
||||||
"${INPUT_HOST}${INPUT_TOPIC}"
|
"${INPUT_HOST}${INPUT_TOPIC}"
|
||||||
elif [ "$1" = "cancelled" ]; then
|
elif [ "$1" = "cancelled" ]; then
|
||||||
# square or x with circle
|
curl -s -u "${INPUT_USER}:${INPUT_PASSWORD}" \
|
||||||
curl -u "${INPUT_USER}:${INPUT__PASSWORD}" \
|
|
||||||
-H "Title: Job cancelled. ${GITHUB_REPOSITORY}/${GITHUB_REF}" \
|
-H "Title: Job cancelled. ${GITHUB_REPOSITORY}/${GITHUB_REF}" \
|
||||||
-H "Priority: low" \
|
-H "Priority: low" \
|
||||||
-H "Tags: x" \
|
-H "Tags: x" \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user