mirror of
https://github.com/Clortox/drone-ntfy.git
synced 2026-03-15 14:08:00 +00:00
Compare commits
2 Commits
add-attach
...
pipeline-r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58d59d7aec | ||
|
|
7ab1061904 |
@@ -26,3 +26,6 @@ steps:
|
|||||||
MESSAGE: Drone-ntfy has finished building!
|
MESSAGE: Drone-ntfy has finished building!
|
||||||
CLICK: https://drone.clortox.com/tyler/drone-ntfy
|
CLICK: https://drone.clortox.com/tyler/drone-ntfy
|
||||||
TITLE: Drone (drone-ntfy)
|
TITLE: Drone (drone-ntfy)
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|||||||
13
main.sh
13
main.sh
@@ -6,7 +6,6 @@ Priority=${PLUGIN_PRIORITY:-}
|
|||||||
Title=${PLUGIN_TITLE:-}
|
Title=${PLUGIN_TITLE:-}
|
||||||
Tags=${PLUGIN_TAGS:-}
|
Tags=${PLUGIN_TAGS:-}
|
||||||
Click=${PLUGIN_CLICK:-}
|
Click=${PLUGIN_CLICK:-}
|
||||||
|
|
||||||
Attach=${PLUGIN_ATTACH:-}
|
Attach=${PLUGIN_ATTACH:-}
|
||||||
Icon=${PLUGIN_ICON:-}
|
Icon=${PLUGIN_ICON:-}
|
||||||
|
|
||||||
@@ -33,5 +32,13 @@ if [[ ! -z $Click ]]; then
|
|||||||
Click="-H Click:$Click"
|
Click="-H Click:$Click"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl $Priority $Title $Tags $Click -u $Username:$Password -d "$Message" $URL/$Topic
|
if [[ ! -z $Attach ]]; then
|
||||||
#echo curl $Priority $Title $Tags $Click -u $Username:$Password -d "$Message" $URL/$Topic
|
Attach="-H Attach:$Attach"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -z $Icon ]]; then
|
||||||
|
Icon="-H Icon:$Icon"
|
||||||
|
fi
|
||||||
|
|
||||||
|
curl $Priority $Title $Tags $Click $Attach $Icon -u $Username:$Password -d "$Message" $URL/$Topic
|
||||||
|
#curl $Priority $Title $Tags $Click $Attach $Icon -u $Username:$Password -d "$Message" $URL/$Topic
|
||||||
|
|||||||
Reference in New Issue
Block a user