File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 5252
5353 - name : Publish Javadocs
5454 env :
55- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
55+ GH_TOKEN : ${{ secrets.GH_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 @@ -9,8 +9,11 @@ printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB
99
1010printf " \n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111rm -fr ./gh-pages
12- git config --global user.email " github-actions[bot]@users.noreply.github.com"
13- git config --global user.name " github-actions[bot]"
12+ # TODO this approach doesnt work when using GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} in workflow
13+ # git config --global user.email "github-actions[bot]@users.noreply.github.com"
14+ # git config --global user.name "github-actions[bot]"
15+ # git clone --branch=gh-pages https://${GH_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
16+ # TODO For now using a hardcoded token in the repo settings secrets, tied to brian.gleeson@ie.ibm.com
1417git clone --branch=gh-pages https://${GH_TOKEN} @github.com/${GITHUB_REPO_SLUG} .git gh-pages
1518printf " \n>>>>> Finished cloning...\n"
1619
You can’t perform that action at this time.
0 commit comments