Skip to content

Commit fa284e7

Browse files
committed
chore: push auth issue
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent 313a655 commit fa284e7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

build/publishJavadoc-gha.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rm -fr ./gh-pages
1212
git config --global user.email "devxsdk@us.ibm.com"
1313
git config --global user.name "ibm-devx-sdk"
1414
git clone --branch=gh-pages https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
15+
git config --global url."x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git"
1516
# Configure the remote URL with the token for pushing
1617
# git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git
1718
printf "\n>>>>> GH version...\n"
@@ -39,7 +40,7 @@ git commit -m "docs: latest javadoc for ${GITHUB_TAG}"
3940
printf "\n>>>>> Committed changes...\n"
4041
git remote -v
4142
# git push -f origin gh-pages
42-
gh push origin gh-pages
43+
git push --repo="https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git" -f gh-pages
4344
printf "\n>>>>> Pushed changes...\n"
4445

4546
popd

0 commit comments

Comments
 (0)