diff --git a/action.yml b/action.yml index 1c503d2..44b4856 100644 --- a/action.yml +++ b/action.yml @@ -8,10 +8,10 @@ inputs: topic: description: 'Ntfy topic' required: true - status: - description: 'Job status. Use ${{ job.status }} for most cases' - required: true - default: '${{ job.status }}' + # status: + # description: 'Job status. Use ${{ job.status }} for most cases' + # required: true + # default: '${{ job.status }}' user: description: 'Username for ntfy server' required: true # should be false, but we'll do authenticated sessions only for now @@ -21,3 +21,5 @@ inputs: runs: using: 'docker' image: 'Dockerfile' + args: + - ${{ job.status }} diff --git a/entrypoint.sh b/entrypoint.sh index 5c58e02..d23b264 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,6 +1,7 @@ #!/bin/sh env | sort +echo "status should be: $1" #GITHUB_RUN_NUMBER # Job status: success/failure/cancelled