action-notify-ntfy/action.yml

25 lines
677 B
YAML

name: 'Ntfy notification'
description: 'Notifies job status via ntfy'
author: 'lobo'
inputs:
host:
description: 'Ntfy host'
required: true
topic:
description: 'Ntfy topic'
required: true
status:
description: 'Job status. Use expression {{ job.status }} for most cases'
required: true
user:
description: 'Username for ntfy server'
required: true # should be false, but we'll do authenticated sessions only for now
password:
description: 'Password for ntfy server'
required: true # should be false, but we'll do authenticated sessions only for now
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.status }}