Skip to content

Commit 3d1cbd4

Browse files
committed
update action
Signed-off-by: Yanxuan Liu <[email protected]>
1 parent 9d0e3c4 commit 3d1cbd4

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

.github/workflows/pr-desc-check.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ on:
2222
jobs:
2323
pr-description-check:
2424
runs-on: ubuntu-latest
25+
permissions:
26+
pull-requests: read
27+
statuses: write
28+
contents: read
2529
if: "!contains(github.event.pull_request.title, '[bot]')"
2630
steps:
2731
- name: pr-description-check
2832
uses: NVIDIA/spark-rapids-common/pr-description-check@main
33+
with:
34+
github-token: ${{ secrets.GITHUB_TOKEN }}

pr-description-check/action.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@
1414

1515
name: 'PR Description Check'
1616
description: 'check if comment exists in PR description'
17+
inputs:
18+
github-token:
19+
description: "github token"
20+
required: true
21+
type: string
1722

1823
runs:
1924
using: "composite"
@@ -37,16 +42,6 @@ runs:
3742
core.setFailed(description);
3843
}
3944
40-
console.log({
41-
owner: context.repo.owner,
42-
repo: context.repo.repo,
43-
sha,
44-
state,
45-
target_url: pr.html_url,
46-
description: description.substring(0, 140),
47-
context: 'pr-description-check'
48-
});
49-
5045
await github.rest.repos.createCommitStatus({
5146
owner: context.repo.owner,
5247
repo: context.repo.repo,

0 commit comments

Comments
 (0)