yaml fix
This commit is contained in:
parent
e6d52912f7
commit
0dff4b920d
@ -42,7 +42,7 @@ steps:
|
||||
#- curl -H "Content-Type: application/json" -X POST $ENDPOINT/webhooks/$webhook_id/$webhook_token -d "{ \"wait\": false, \"content\": \"\", \"username\": \"\", \"avatar_url\": \"\", \"tts\": false, \"embeds\": [ { \"title\": \":white_check_mark: Build #${DRONE_BUILD_NUMBER} of `${DRONE_REPO}` succeeded.\", \"description\": \"event: **`${DRONE_BUILD_EVENT}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:8}`](${DRONE_COMMIT_LINK}) on [`${DRONE_COMMIT_BRANCH}`](${DRONE_REPO_LINK}/src/branch/${DRONE_COMMIT_BRANCH})\n${DRONE_COMMIT_MESSAGE} - ${DRONE_COMMIT_AUTHOR_NAME}\n\n[go to repo](${DRONE_REPO})\", \"url\": \"https://${DRONE_SYSTEM_HOST}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}\", \"color\": 7506394, \"footer\": { \"text\": \"drone discord webhook\" }, \"author\": { \"name\": \"${DRONE_COMMIT_AUTHOR}\", \"url\": \"https://git.dotya.ml/${DRONE_COMMIT_AUTHOR}\", \"icon_url\": \"https://git.dotya.ml/user/avatar/${DRONE_COMMIT_AUTHOR}/-1\" }, \"fields\": null } ] }"
|
||||
- echo $ENDPOINT
|
||||
- echo ${DRONE_COMMIT_SHA}
|
||||
- export MESSAGE='{ "wait": false, "content": "", "username": "", "avatar_url": "", "tts": false, "embeds": [ { "title": ":white_check_mark: Build \#${DRONE_BUILD_NUMBER} of `${DRONE_REPO}` succeeded.", "description": "event: **`${DRONE_BUILD_EVENT}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:8}`](${DRONE_COMMIT_LINK}) on [`${DRONE_COMMIT_BRANCH}`](${DRONE_REPO_LINK}/src/branch/${DRONE_COMMIT_BRANCH})\n${DRONE_COMMIT_MESSAGE} - ${DRONE_COMMIT_AUTHOR_NAME}\n\n[go to repo](${DRONE_REPO})", "url": "https://${DRONE_SYSTEM_HOST}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}", "color": 7506394, "footer": { "text\": "drone discord webhook" }, "author": { "name": "${DRONE_COMMIT_AUTHOR}", "url": "https://git.dotya.ml/${DRONE_COMMIT_AUTHOR}", "icon_url": "https://git.dotya.ml/user/avatar/${DRONE_COMMIT_AUTHOR}/-1" }, "fields": null } ] }'
|
||||
- > export MESSAGE='{ "wait": false, "content": "", "username": "", "avatar_url": "", "tts": false, "embeds": [ { "title": ":white_check_mark: Build \#${DRONE_BUILD_NUMBER} of `${DRONE_REPO}` succeeded.", "description": "event: **`${DRONE_BUILD_EVENT}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:8}`](${DRONE_COMMIT_LINK}) on [`${DRONE_COMMIT_BRANCH}`](${DRONE_REPO_LINK}/src/branch/${DRONE_COMMIT_BRANCH})\n${DRONE_COMMIT_MESSAGE} - ${DRONE_COMMIT_AUTHOR_NAME}\n\n[go to repo](${DRONE_REPO})", "url": "https://${DRONE_SYSTEM_HOST}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}", "color": 7506394, "footer": { "text": "drone discord webhook" }, "author": { "name": "${DRONE_COMMIT_AUTHOR}", "url": "https://git.dotya.ml/${DRONE_COMMIT_AUTHOR}", "icon_url": "https://git.dotya.ml/user/avatar/${DRONE_COMMIT_AUTHOR}/-1" }, "fields": null } ] }'
|
||||
- echo $MESSAGE
|
||||
trigger:
|
||||
branch:
|
||||
@ -81,11 +81,11 @@ steps:
|
||||
from_secret: discord_webhook_hourly_token
|
||||
ENDPOINT: https://discordapp.com/api
|
||||
#MESSAGE: "{ \"wait\": false, \"content\": \"\", \"username\": \"\", \"avatar_url\": \"\", \"tts\": false, \"embeds\": [ { \"title\": \":white_check_mark: Build #${DRONE_BUILD_NUMBER} of `${DRONE_REPO}` succeeded.\", \"description\": \"event: **`${DRONE_BUILD_EVENT}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:8}`](${DRONE_COMMIT_LINK}) on [`${DRONE_COMMIT_BRANCH}`](${DRONE_REPO_LINK}/src/branch/${DRONE_COMMIT_BRANCH})\n${DRONE_COMMIT_MESSAGE} - ${DRONE_COMMIT_AUTHOR_NAME}\n\n[go to repo](${DRONE_REPO})\", \"url\": \"https://${DRONE_SYSTEM_HOST}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}\", \"color\": 7506394, \"footer\": { \"text\": \"drone discord webhook\" }, \"author\": { \"name\": \"${DRONE_COMMIT_AUTHOR}\", \"url\": \"https://git.dotya.ml/${DRONE_COMMIT_AUTHOR}\", \"icon_url\": \"https://git.dotya.ml/user/avatar/${DRONE_COMMIT_AUTHOR}/-1\" }, \"fields\": null } ] }"
|
||||
#MESSAGE: '{ "wait": false, "content": "", "username": "", "avatar_url": "", "tts": false, "embeds": [ { "title": ":white_check_mark: Build #${DRONE_BUILD_NUMBER} of `${DRONE_REPO}` succeeded.", "description": "event: **`${DRONE_BUILD_EVENT}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:8}`](${DRONE_COMMIT_LINK}) on [`${DRONE_COMMIT_BRANCH}`](${DRONE_REPO_LINK}/src/branch/${DRONE_COMMIT_BRANCH})\n${DRONE_COMMIT_MESSAGE} - ${DRONE_COMMIT_AUTHOR_NAME}\n\n[go to repo](${DRONE_REPO})", "url": "https://${DRONE_SYSTEM_HOST}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}", "color": 7506394, "footer": { "text": "drone discord webhook" }, "author": { "name": "${DRONE_COMMIT_AUTHOR}", "url": "https://git.dotya.ml/${DRONE_COMMIT_AUTHOR}", "icon_url": "https://git.dotya.ml/user/avatar/${DRONE_COMMIT_AUTHOR}/-1" }, "fields": null } ] }'
|
||||
commands:
|
||||
#- curl -H "Content-Type: application/json" -X POST $ENDPOINT/webhooks/$webhook_id/$webhook_token -d "{ \"wait\": false, \"content\": \"\", \"username\": \"\", \"avatar_url\": \"\", \"tts\": false, \"embeds\": [ { \"title\": \":white_check_mark: Build #${DRONE_BUILD_NUMBER} of `${DRONE_REPO}` succeeded.\", \"description\": \"event: **`${DRONE_BUILD_EVENT}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:8}`](${DRONE_COMMIT_LINK}) on [`${DRONE_COMMIT_BRANCH}`](${DRONE_REPO_LINK}/src/branch/${DRONE_COMMIT_BRANCH})\n${DRONE_COMMIT_MESSAGE} - ${DRONE_COMMIT_AUTHOR_NAME}\n\n[go to repo](${DRONE_REPO})\", \"url\": \"https://${DRONE_SYSTEM_HOST}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}\", \"color\": 7506394, \"footer\": { \"text\": \"drone discord webhook\" }, \"author\": { \"name\": \"${DRONE_COMMIT_AUTHOR}\", \"url\": \"https://git.dotya.ml/${DRONE_COMMIT_AUTHOR}\", \"icon_url\": \"https://git.dotya.ml/user/avatar/${DRONE_COMMIT_AUTHOR}/-1\" }, \"fields\": null } ] }"
|
||||
- echo $ENDPOINT
|
||||
- echo ${DRONE_COMMIT_SHA}
|
||||
- > export MESSAGE='{ "wait": false, "content": "", "username": "", "avatar_url": "", "tts": false, "embeds": [ { "title": ":white_check_mark: Build \#${DRONE_BUILD_NUMBER} of `${DRONE_REPO}` succeeded.", "description": "event: **`${DRONE_BUILD_EVENT}`**\n\ncommit [`${DRONE_COMMIT_SHA:0:8}`](${DRONE_COMMIT_LINK}) on [`${DRONE_COMMIT_BRANCH}`](${DRONE_REPO_LINK}/src/branch/${DRONE_COMMIT_BRANCH})\n${DRONE_COMMIT_MESSAGE} - ${DRONE_COMMIT_AUTHOR_NAME}\n\n[go to repo](${DRONE_REPO})", "url": "https://${DRONE_SYSTEM_HOST}/${DRONE_REPO_NAME}/${DRONE_BUILD_NUMBER}", "color": 7506394, "footer": { "text": "drone discord webhook" }, "author": { "name": "${DRONE_COMMIT_AUTHOR}", "url": "https://git.dotya.ml/${DRONE_COMMIT_AUTHOR}", "icon_url": "https://git.dotya.ml/user/avatar/${DRONE_COMMIT_AUTHOR}/-1" }, "fields": null } ] }'
|
||||
trigger:
|
||||
event:
|
||||
- cron
|
||||
|
Loading…
Reference in New Issue
Block a user