File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5252
5353 - name : Publish Javadocs
5454 env :
55- GH_TOKEN : ${{ secrets.GH_TOKEN }}
55+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5656 GITHUB_REPO_SLUG : ${{ github.repository }}
5757 GITHUB_TAG : ${{ github.ref_name}}
5858 run : |
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Required environment variables:
4- # GITHUB_TOKEN
4+ # GH_TOKEN
55# GITHUB_REPO_SLUG
66# GITHUB_TAG
77
88printf " \n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB_REPO_SLUG} ${GITHUB_TAG}
99
1010printf " \n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111rm -fr ./gh-pages
12- git config --global user.email " idsorg@us.ibm .com"
13- git config --global user.name " idsorg "
12+ git config --global user.email " github-actions[bot]@users.noreply.github .com"
13+ git config --global user.name " github-actions[bot] "
1414git clone --branch=gh-pages https://${GH_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git gh-pages
15- # git clone --branch=gh-pages https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
16- # Configure the remote URL with the token for pushing
17- # git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git
1815printf " \n>>>>> Finished cloning...\n"
1916
2017gh auth status
You can’t perform that action at this time.
0 commit comments