Skip to content

Commit 1334548

Browse files
committed
fixed yaml
1 parent 994ef64 commit 1334548

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/codegen_check.yaml

+2-6
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ on:
77
# a pull request.
88
pull_request:
99
types: [opened, synchronize, reopened]
10-
branches:
11-
- main
1210

1311
# Declare default permissions as read only.
1412
permissions: read-all
1513

1614
name: Code Generation Check
1715
jobs:
1816
check-codegen:
17+
permissions:
18+
pull-requests: write
1919
strategy:
2020
matrix:
2121
target: [ mocks, protobuf ]
@@ -34,8 +34,6 @@ jobs:
3434
continue-on-error: true
3535
- name: Comment PR - Failure
3636
if: steps.generate.outcome == 'failure'
37-
permissions:
38-
pull-requests: write
3937
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
4038
with:
4139
comment_tag: 'code_gen_${{ matrix.target }}'
@@ -45,8 +43,6 @@ jobs:
4543
up to date. Please review the failed action before deciding to merge the PR.
4644
- name: Comment PR - Success
4745
if: steps.generate.outcome != 'failure'
48-
permissions:
49-
pull-requests: write
5046
uses: thollander/actions-comment-pull-request@fabd468d3a1a0b97feee5f6b9e499eab0dd903f6 # v2.5.0
5147
with:
5248
comment_tag: 'code_gen_${{ matrix.target }}'

0 commit comments

Comments
 (0)