mirror of
https://github.com/Clortox/drone-ntfy.git
synced 2026-03-15 14:08:00 +00:00
Compare commits
1 Commits
optional-u
...
pipeline-r
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58d59d7aec |
@@ -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
|
||||||
|
|||||||
8
main.sh
8
main.sh
@@ -16,10 +16,6 @@ Message=${PLUGIN_MESSAGE:-Pipeline finished!}
|
|||||||
Username=${PLUGIN_USERNAME:-}
|
Username=${PLUGIN_USERNAME:-}
|
||||||
Password=${PLUGIN_PASSWORD:-}
|
Password=${PLUGIN_PASSWORD:-}
|
||||||
|
|
||||||
if [[ ! -z $Username ]] || [[ ! -z $Password ]]; then
|
|
||||||
UParam="-u $Username:$Password"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -z $Priority ]]; then
|
if [[ ! -z $Priority ]]; then
|
||||||
Priority="-H Priority:$Priority"
|
Priority="-H Priority:$Priority"
|
||||||
fi
|
fi
|
||||||
@@ -44,5 +40,5 @@ if [[ ! -z $Icon ]]; then
|
|||||||
Icon="-H Icon:$Icon"
|
Icon="-H Icon:$Icon"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl $Priority $Title $Tags $Click $Attach $Icon $UParam -d "$Message" $URL/$Topic
|
curl $Priority $Title $Tags $Click $Attach $Icon -u $Username:$Password -d "$Message" $URL/$Topic
|
||||||
#curl $Priority $Title $Tags $Click $Attach $Icon $UParam -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