Skip to content

Commit 8d8410e

Browse files
committed
Makefile: use the right token environment variable
Signed-off-by: Elijah Newren <[email protected]>
1 parent 84fddfe commit 8d8410e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ release: update_docs
9898
| xz -c >$(FILEBASE).tar.xz
9999
rm $$GIT_INDEX_FILE
100100
# Make GitHub mark our new tag as an official release
101-
curl -s -H "Authorization: token $(TOKEN)" -X POST \
101+
curl -s -H "Authorization: token $(GITHUB_COM_TOKEN)" -X POST \
102102
https://api.github.com/repos/newren/git-filter-repo/releases \
103103
--data "{ \
104104
\"tag_name\": \"$(TAGNAME)\", \
@@ -107,7 +107,7 @@ release: update_docs
107107
\"body\": \"filter-repo $(TAGNAME)\" \
108108
}" | jq -r .id >asset_id
109109
# Upload our tarball
110-
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
110+
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
111111
# Remove temporary file(s)
112112
rm asset_id
113113
# Notify of completion

0 commit comments

Comments
 (0)