From 8d8410e2b2d67bc6232001c7474f073f49f9d47a Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Sat, 2 Nov 2019 23:49:48 -0700 Subject: [PATCH] Makefile: use the right token environment variable Signed-off-by: Elijah Newren --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index e4c1f9d4..35ece559 100644 --- a/Makefile +++ b/Makefile @@ -98,7 +98,7 @@ release: update_docs | xz -c >$(FILEBASE).tar.xz rm $$GIT_INDEX_FILE # Make GitHub mark our new tag as an official release - curl -s -H "Authorization: token $(TOKEN)" -X POST \ + curl -s -H "Authorization: token $(GITHUB_COM_TOKEN)" -X POST \ https://api.github.com/repos/newren/git-filter-repo/releases \ --data "{ \ \"tag_name\": \"$(TAGNAME)\", \ @@ -107,7 +107,7 @@ release: update_docs \"body\": \"filter-repo $(TAGNAME)\" \ }" | jq -r .id >asset_id # Upload our tarball - cat asset_id | xargs -I ASSET_ID curl -s -H "Authorization: token $(TOKEN)" -H "Content-Type: application/octet-stream" --data-binary @$(FILEBASE).tar.xz https://uploads.github.com/repos/newren/git-filter-repo/releases/ASSET_ID/assets?name=$(FILEBASE).tar.xz + cat asset_id | xargs -I ASSET_ID curl -s -H "Authorization: token $(GITHUB_COM_TOKEN)" -H "Content-Type: application/octet-stream" --data-binary @$(FILEBASE).tar.xz https://uploads.github.com/repos/newren/git-filter-repo/releases/ASSET_ID/assets?name=$(FILEBASE).tar.xz # Remove temporary file(s) rm asset_id # Notify of completion