From a0a9c6f4181631d3add6dc55ef88b5369400ceb2 Mon Sep 17 00:00:00 2001 From: Bella Date: Tue, 28 Apr 2020 11:33:53 -0400 Subject: [PATCH] use env variables because they not using them is bad --- scripts/hook.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/hook.sh b/scripts/hook.sh index b22138209..5e49d1b96 100755 --- a/scripts/hook.sh +++ b/scripts/hook.sh @@ -18,7 +18,7 @@ CHANGELOG_FULL="$(git log --format=%s $COMMIT_TRIM...$COMMIT_LAST | sed ':a;N;$! # Upload the release cd ~/ source ~/.profile -./github-release-linux-amd64 $CUR_VER-$COMMIT_TRIM $BUILD_DIR/$JAR_DIR --github-access-token $GITHUB_RELEASE_ACCESS_TOKEN --github-repository "kami-blue/nightly-releases" --prerelease true +./github-release-linux-amd64 $CUR_VER-$COMMIT_TRIM $BUILD_DIR/$JAR_DIR --github-access-token $GITHUB_RELEASE_ACCESS_TOKEN --github-repository $GITHUB_RELEASE_REPOSITORY # Send message with commit information curl -H "Content-Type: application/json" -X POST -d '{"embeds": [{"title": "Download v'$CUR_VER\-$COMMIT_TRIM'","color": 10195199,"description": "[**DOWNLOAD**](https://github.com/kami-blue/nightly-releases/releases/download/'$CUR_VER\-$COMMIT_TRIM'/'${JAR_DIR}')\n\n**Changelog:** \n- '"$CHANGELOG_FULL"'\n\nCommit: ['${COMMIT_TRIM}'](https://github.com/kami-blue/client/commit/'${COMMIT_FULL}') "}]}' "$WEBHOOK"