Skip to content

Commit c3b9c44

Browse files
committed
chore: test branch for javadoc publish issue
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent 894dff5 commit c3b9c44

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
if: (github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore(release):')) || (github.event_name == 'workflow_dispatch' && inputs.publish_javadoc)
3232

3333
permissions:
34-
contents: write
34+
contents: read
3535
pages: write
3636

3737
steps:
@@ -52,7 +52,8 @@ jobs:
5252

5353
- name: Publish Javadocs
5454
env:
55-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
55+
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
56+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5657
GITHUB_REPO_SLUG: ${{ github.repository }}
5758
GITHUB_TAG: ${{ github.ref_name}}
5859
run: |

build/publishJavadoc-gha.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB
1010
printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111
rm -fr ./gh-pages
1212
# 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
13+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
14+
git config --global user.name "github-actions[bot]"
1715
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
17+
# git clone --branch=gh-pages https://${GH_TOKEN}@github.com/${GITHUB_REPO_SLUG}.git gh-pages
1818
printf "\n>>>>> Finished cloning...\n"
1919

2020
gh auth status

0 commit comments

Comments
 (0)