Skip to content

Commit 675b479

Browse files
committed
Update for secret in env for workflow
Signed-off-by: Xiaodong Li <xiaodong.li@intel.com>
1 parent 4917749 commit 675b479

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/ci_lin.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ jobs:
2727
fetch-depth: ${{ env.PR_FETCH_DEPTH }}
2828
- name: Run clang-format
2929
uses: ./devops/actions/clang-format-SYCLomatic
30-
30+
with:
31+
github_token: ${{ secrets.GITHUB_TOKEN }}

devops/actions/clang-format-SYCLomatic/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: 'clang-format'
22
description: 'Run clang-format on pull request'
3+
inputs:
4+
github_token:
5+
description: 'GitHub Token'
6+
required: true
7+
38
runs:
49
using: "composite"
510
steps:
@@ -12,8 +17,9 @@ runs:
1217

1318
- name: Get changed files
1419
id: changed-files
20+
shell: bash
1521
env:
16-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
GITHUB_TOKEN: ${{ inputs.github_token }}
1723
run: |
1824
PR_NUMBER=${{ github.event.pull_request.number }}
1925
REPO_FULL_NAME=${{ github.repository }}

0 commit comments

Comments
 (0)