gogs-notify.sh takes gogs token as command line arg

This commit is contained in:
Dan Ballard 2018-07-04 12:45:54 -05:00
parent 1452290d8b
commit e26dc4902f
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#!/bin/sh
curl -H "Authorization: token $BUILDBOT" -H "Content-Type: application/json" -d "{\"Body\": \"Drone Build Status: ${DRONE_BUILD_STATUS}\n\n${DRONE_BUILD_LINK}\"}" -X POST https://git.openprivacy.ca/api/v1/repos/${DRONE_REPO}/issues/${DRONE_PULL_REQUEST}/comments
curl -H "Authorization: token $1" -H "Content-Type: application/json" -d "{\"Body\": \"Drone Build Status: ${DRONE_BUILD_STATUS}\n\n${DRONE_BUILD_LINK}\"}" -X POST https://git.openprivacy.ca/api/v1/repos/${DRONE_REPO}/issues/${DRONE_PULL_REQUEST}/comments