Compare commits
2 Commits
d37726fcc9
...
95beb54b32
| Author | SHA1 | Date | |
|---|---|---|---|
| 95beb54b32 | |||
| b6a8d96585 |
@@ -20,13 +20,12 @@ on:
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
secrets:
|
||||
NTFY_CHANNEL:
|
||||
required: true
|
||||
|
||||
jobs:
|
||||
send-notification:
|
||||
runs-on: [home-server]
|
||||
env:
|
||||
NTFY_CHANNEL: ${{ secrets.NTFY_CHANNEL }}
|
||||
steps:
|
||||
- name: Send ntfy notification
|
||||
working-directory: /home/gitea-runner
|
||||
@@ -38,7 +37,7 @@ jobs:
|
||||
-H "Tags: ${{ inputs.tags }}" \
|
||||
-H "Actions: view, View Logs, ${{ inputs.action_url }}" \
|
||||
--data-binary "@-" \
|
||||
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
|
||||
"https://ntfy.sh/$NTFY_CHANNEL"
|
||||
${{ inputs.message }}
|
||||
EOF
|
||||
else
|
||||
@@ -46,7 +45,7 @@ jobs:
|
||||
-H "Priority: ${{ inputs.priority }}" \
|
||||
-H "Tags: ${{ inputs.tags }}" \
|
||||
--data-binary "@-" \
|
||||
"https://ntfy.sh/${{ secrets.NTFY_CHANNEL }}"
|
||||
"https://ntfy.sh/$NTFY_CHANNEL"
|
||||
${{ inputs.message }}
|
||||
EOF
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user