From 37fe4fc874e046db7e1210fb807c5020b2c5a8cb Mon Sep 17 00:00:00 2001 From: Emil Lerch Date: Mon, 27 Mar 2023 14:34:22 -0700 Subject: [PATCH] move job status to arg --- action.yml | 10 ++++++---- entrypoint.sh | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) 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