Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4d1aa26

Browse files
ci: add pull_request write permission (TheAlgorithms#2985)
1 parent c39d84b commit 4d1aa26

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

‎.github/workflows/awesome_workflow.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Awesome CI Workflow
22
on: [push, pull_request]
33
permissions:
4+
pull-requests: write
45
contents: write
56

67
jobs:
@@ -13,10 +14,10 @@ jobs:
1314
fetch-depth: 0
1415
- uses: actions/setup-python@v4
1516
- name: requirements
16-
run: |
17+
run: |
1718
sudo apt-get -qq update
1819
sudo apt-get -qq install clang-tidy clang-format
19-
# checks are passing with less errors when used with this version.
20+
# checks are passing with less errors when used with this version.
2021
# The default installs v6.0 which did not work out well in my tests
2122
- name: Setup Git Specs
2223
run: |
@@ -33,8 +34,8 @@ jobs:
3334
git diff --diff-filter=dr --name-only origin/master > git_diff.txt
3435
echo "Files changed-- `cat git_diff.txt`"
3536
- name: Configure for static lint checks
36-
# compiling first gives clang-tidy access to all the header files and settings used to compile the programs.
37-
# This will check for macros, if any, on linux and not for Windows. But the use of portability checks should
37+
# compiling first gives clang-tidy access to all the header files and settings used to compile the programs.
38+
# This will check for macros, if any, on linux and not for Windows. But the use of portability checks should
3839
# be able to catch any errors for other platforms.
3940
run: cmake -B build -S . -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
4041
- name: Lint modified files

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /