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