Replace niniyas/ntfy-action dependency with direct curl call

This commit is contained in:
2026-07-22 14:32:01 +02:00
parent 07d8e28a2f
commit 79267b4f70
+15 -15
View File
@@ -19,23 +19,23 @@ inputs:
runs: runs:
using: composite using: composite
steps: steps:
- name: Configure notification - name: Send ntfy notification
id: config
shell: bash shell: bash
env:
NTFY_URL: ${{ inputs.ntfy_url }}
NTFY_TOPIC: ${{ inputs.ntfy_topic }}
MESSAGE: ${{ inputs.message }}
run: | run: |
if [ "${{ inputs.status }}" = "failure" ]; then if [ "${{ inputs.status }}" = "failure" ]; then
echo "priority=5" >> "$GITHUB_OUTPUT" PRIORITY=5
echo "tags=flying_saucer,warning,🚨,🛠️,action,failed" >> "$GITHUB_OUTPUT" TAGS="flying_saucer,warning,🚨,🛠️,action,failed"
else else
echo "priority=3" >> "$GITHUB_OUTPUT" PRIORITY=3
echo "tags=rocket,white_check_mark,🎉,docker" >> "$GITHUB_OUTPUT" TAGS="rocket,white_check_mark,🎉,docker"
fi fi
curl -sf \
- name: Send ntfy notification -H "Title: CI Notification" \
uses: niniyas/ntfy-action@master -H "Priority: ${PRIORITY}" \
with: -H "Tags: ${TAGS}" \
url: ${{ inputs.ntfy_url }} -d "${MESSAGE}" \
topic: ${{ inputs.ntfy_topic }} "${NTFY_URL}/${NTFY_TOPIC}"
priority: ${{ steps.config.outputs.priority }}
tags: ${{ steps.config.outputs.tags }}
details: ${{ inputs.message }}