1
0
Fork 0
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:
Disservin 2024-07-10 17:56:43 +02:00 committed by Joost VandeVondele
parent 362a77a345
commit 98a7bb4436

View file

@ -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 }}