From e26dc4902f323db1e5ed21a0f74804b93e5c4620 Mon Sep 17 00:00:00 2001 From: Dan Ballard Date: Wed, 4 Jul 2018 12:45:54 -0500 Subject: [PATCH] gogs-notify.sh takes gogs token as command line arg --- gogs-notify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gogs-notify.sh b/gogs-notify.sh index 1630ba0..4da85f8 100644 --- a/gogs-notify.sh +++ b/gogs-notify.sh @@ -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