Skip to content

Commit 969e89e

Browse files
committed
fix: use CI_GITHUB_TOKEN in workflows if present
1 parent 4023541 commit 969e89e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/0.initial.migrate-repo-template.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ jobs:
6363
uses: actions/checkout@v4
6464
with:
6565
ref: main
66+
token: ${{ secrets.CI_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
6667

6768
- name: Migrate
6869
env:

.github/workflows/callable.publish-javadoc.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Deploy Javadoc
1+
name: Publish javadoc (GitHub Pages)
22

33
on:
44
workflow_dispatch:
55
workflow_call:
66

77
jobs:
88
build_package_javadoc:
9-
name: Generate javadoc
9+
name: Generate Javadoc
1010
runs-on: ubuntu-latest
1111
permissions:
1212
contents: write
@@ -62,7 +62,8 @@ jobs:
6262
uses: actions/checkout@v4
6363
with:
6464
ref: main
65-
token: ${{ secrets.GITHUB_TOKEN }}
65+
token: ${{ secrets.CI_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
66+
6667
- name: Checkout or create empty branch 'gh-pages'
6768
run: |
6869
git fetch origin gh-pages || true

0 commit comments

Comments
 (0)