Skip to content

Commit 98ca22b

Browse files
committed
Fix authentication
1 parent f464180 commit 98ca22b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/i.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
run: |
6767
git -c init.defaultBranch=default-branch init
6868
git remote add origin "$REPOSITORY_URL"
69+
git config "http.$REPOSITORY_URL.extraheader" "Authorization: Basic $(echo -n "x-access-token:$GH_TOKEN" | base64 -w0)"
6970
7071
tags_under_major_version="$(git ls-remote --sort=v:refname --tags origin "refs/tags/$MAJOR_POINTAG*")"
7172
major_pointag_information="$(head -1 <<< "$tags_under_major_version")"
@@ -105,4 +106,4 @@ jobs:
105106
fi
106107
107108
git fetch --depth 1 origin "$highest_tag_revision"
108-
git -c "http.$REPOSITORY_URL.extraheader=Authorization: Token $GH_TOKEN" push -f origin "FETCH_HEAD:refs/tags/$MAJOR_POINTAG"
109+
git push -f origin "FETCH_HEAD:refs/tags/$MAJOR_POINTAG"

0 commit comments

Comments
 (0)