summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorcoco875 <59367621+coco875@users.noreply.github.com>2025-01-19 19:48:31 +0100
committerGitHub <noreply@github.com>2025-01-19 11:48:31 -0700
commitbfc07230815dffa400ac359a5b3d7ba9deaaa5ca (patch)
treedfdd48904904eea502855567d0e115d1a36c2014 /.github
parent058b8e9b19aa97044d94d8b3525e8a06c758bba9 (diff)
fix action (#141)
* fix action * Update clang-pr.yml --------- Co-authored-by: MegaMech <MegaMech@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/clang-format-suggest.yml5
-rw-r--r--.github/workflows/clang-pr.yml4
2 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/clang-format-suggest.yml b/.github/workflows/clang-format-suggest.yml
index 03759fffb..2b3468408 100644
--- a/.github/workflows/clang-format-suggest.yml
+++ b/.github/workflows/clang-format-suggest.yml
@@ -2,6 +2,9 @@ name: clang-format Suggest
on: [pull_request]
jobs:
formatting-check:
+ permissions: # needed in forks? https://github.com/parkerbxyz/suggest-changes/issues/33
+ contents: read
+ pull-requests: write
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
@@ -14,4 +17,4 @@ jobs:
python tools/format.py
- uses: parkerbxyz/suggest-changes@v1
with:
- comment: 'Please commit the suggested changes from clang-format.'
+ comment: "Please commit the suggested changes from clang-format."
diff --git a/.github/workflows/clang-pr.yml b/.github/workflows/clang-pr.yml
index 379bbe470..da4809b7e 100644
--- a/.github/workflows/clang-pr.yml
+++ b/.github/workflows/clang-pr.yml
@@ -1,5 +1,7 @@
name: clang-format PR
-on: [push]
+on:
+ push:
+ branches: ["main"]
jobs:
formatting-check:
runs-on: ubuntu-24.04