Skip to content

Commit b49d455

Browse files
committed
fix: correct YAML permissions indentation and guard PR comment step
1 parent c253b7e commit b49d455

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/codestate-pr-report.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14-
pull-requests: write
14+
pull-requests: write
1515
steps:
1616
- name: Checkout
1717
uses: actions/checkout@v4
@@ -92,6 +92,7 @@ jobs:
9292

9393
- name: Create or update PR comment
9494
uses: marocchino/sticky-pull-request-comment@v2
95+
if: github.event_name == 'pull_request'
9596
with:
9697
header: codestate-pr-report
9798
path: codestate_pr_report.md

0 commit comments

Comments
 (0)