mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
CI give correct permissions for the clang-format action
closes https://github.com/official-stockfish/Stockfish/pull/5470 No functional change
This commit is contained in:
parent
362a77a345
commit
98a7bb4436
1 changed files with 6 additions and 0 deletions
6
.github/workflows/clang-format.yml
vendored
6
.github/workflows/clang-format.yml
vendored
|
@ -11,6 +11,10 @@ on:
|
||||||
paths:
|
paths:
|
||||||
- "**.cpp"
|
- "**.cpp"
|
||||||
- "**.h"
|
- "**.h"
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Clang-Format:
|
Clang-Format:
|
||||||
name: Clang-Format
|
name: Clang-Format
|
||||||
|
@ -39,6 +43,7 @@ jobs:
|
||||||
|
|
||||||
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
|
_(execution **${{ github.run_id }}** / attempt **${{ github.run_attempt }}**)_
|
||||||
comment_tag: execution
|
comment_tag: execution
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Comment on PR
|
- name: Comment on PR
|
||||||
if: steps.clang-format.outcome != 'failure'
|
if: steps.clang-format.outcome != 'failure'
|
||||||
|
@ -49,3 +54,4 @@ jobs:
|
||||||
create_if_not_exists: false
|
create_if_not_exists: false
|
||||||
comment_tag: execution
|
comment_tag: execution
|
||||||
mode: delete
|
mode: delete
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue