Skip to content

Commit 695c2cf

Browse files
committed
chore: test protection rules change
Signed-off-by: BRIAN GLEESON <Brian.Gleeson@ie.ibm.com>
1 parent 0b7c8ac commit 695c2cf

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
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: |

build/publishJavadoc-gha.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
#!/bin/bash
22

33
# Required environment variables:
4-
# GITHUB_TOKEN
4+
# GH_TOKEN
55
# GITHUB_REPO_SLUG
66
# GITHUB_TAG
77

88
printf "\n>>>>> Publishing javadoc for release build: repo=%s tag=%s\n" ${GITHUB_REPO_SLUG} ${GITHUB_TAG}
99

1010
printf "\n>>>>> Cloning repository's gh-pages branch into directory 'gh-pages'\n"
1111
rm -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]"
1414
git 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
1815
printf "\n>>>>> Finished cloning...\n"
1916

2017
gh auth status

0 commit comments

Comments
 (0)