Skip to content

Commit a6ed445

Browse files
committed
updat
1 parent dff3c60 commit a6ed445

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: CodeState PR Report
22

33
on:
4+
push:
5+
branches: [ main ]
46
pull_request:
57
types: [opened, synchronize, reopened, ready_for_review]
68
workflow_dispatch:
@@ -33,14 +35,14 @@ jobs:
3335

3436
- name: Generate PR report
3537
env:
36-
BASE_SHA: ${{ github.event.pull_request.base.sha }}
38+
BASE_SHA: ${{ github.event.pull_request.base.sha || '' }}
3739
HEAD_SHA: ${{ github.sha }}
3840
run: |
3941
python tools/codestate_pr_report.py
4042
41-
- name: Build Pages content (index + history)
43+
- name: Build Pages content (index + history)
4244
env:
43-
PR_NUMBER: ${{ github.event.pull_request.number }}
45+
PR_NUMBER: ${{ github.event.pull_request.number || '' }}
4446
GITHUB_SHA: ${{ github.sha }}
4547
run: |
4648
set -e

0 commit comments

Comments
 (0)