Skip to content

Commit c666839

Browse files
committed
add optional override to github.token
1 parent 2a89ccf commit c666839

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-extension-charts.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@ on:
2121
test_ext_branch:
2222
required: false
2323
type: string
24+
secrets:
25+
github_token:
26+
required: false
2427
outputs:
2528
build-job-status:
2629
value: ${{ jobs.build-extension-artifact.outputs.build-status }}
2730

31+
2832
env:
2933
ACTIONS_RUNNER_DEBUG: false
3034
CI_COMMIT_MESSAGE: CI Build Artifacts
@@ -84,15 +88,15 @@ jobs:
8488
if: github.ref_type == 'tag' || inputs.is_test == 'true'
8589
id: parsed-name
8690
env:
87-
GH_TOKEN: ${{ github.token }}
91+
GH_TOKEN: ${{ secrets.github_token || github.token }}
8892
run: |
8993
yarn parse-tag-name ${{ inputs.tagged_release }} ${{ github.run_id }} "charts"
9094
9195
- name: Run build script
9296
shell: bash
9397
id: build_script
9498
env:
95-
GH_TOKEN: ${{ github.token }}
99+
GH_TOKEN: ${{ secrets.github_token || github.token }}
96100
run: |
97101
publish="yarn publish-pkgs -s ${{ github.repository }} -b ${{ inputs.target_branch }}"
98102

0 commit comments

Comments
 (0)