[llvm] [workflows] Only run code formatter on the main branch (PR #80348)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 1 13:51:02 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Tom Stellard (tstellar)
<details>
<summary>Changes</summary>
Modifying a cherry-picked patch to fix code formatting issues can be risky, so we don't typically do this. Therefore, it's not necessary to run this job on the release branches.
---
Full diff: https://github.com/llvm/llvm-project/pull/80348.diff
1 Files Affected:
- (modified) .github/workflows/pr-code-format.yml (+3)
``````````diff
diff --git a/.github/workflows/pr-code-format.yml b/.github/workflows/pr-code-format.yml
index 5223089ee8a93..c8fd541fd34db 100644
--- a/.github/workflows/pr-code-format.yml
+++ b/.github/workflows/pr-code-format.yml
@@ -1,5 +1,8 @@
name: "Check code formatting"
on: pull_request_target
+ branches:
+ - main
+
permissions:
pull-requests: write
``````````
</details>
https://github.com/llvm/llvm-project/pull/80348
More information about the llvm-commits
mailing list