Skip to content

Commit

Permalink
fix(workflow): Update clang-format-run-pr.yml to Node20.js and update…
Browse files Browse the repository at this point in the history
… permissions (analogdevicesinc#1233)
  • Loading branch information
sihyung-maxim authored Oct 22, 2024
1 parent 06330ac commit 6dd49f8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/clang-format-run-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,20 @@ on:

permissions:
actions: write
contents: write

env:
CLANG_VERSION: 14

jobs:

run-on-pr:
# Run on branchs, not forked PR branches
run-on-pr:
permissions:
contents: write
pull-requests: write
actions: write

# Run on branches, not forked PR branches
if: |
contains(github.event.comment.body, '/clang-format-run')
Expand All @@ -47,7 +53,7 @@ jobs:
run: |
sudo apt-get install clang-format-${CLANG_VERSION}
- uses: actions/github-script@v6
- uses: actions/github-script@v7
id: get-pr
with:
script: |
Expand Down

0 comments on commit 6dd49f8

Please sign in to comment.