move job status to arg

This commit is contained in:
Emil Lerch 2023-03-27 14:34:22 -07:00
parent e8eab2c120
commit 37fe4fc874
Signed by: lobo
GPG Key ID: A7B62D657EF764F8
2 changed files with 7 additions and 4 deletions

View File

@ -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 }}

View File

@ -1,6 +1,7 @@
#!/bin/sh
env | sort
echo "status should be: $1"
#GITHUB_RUN_NUMBER
# Job status: success/failure/cancelled