File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 22
22
pull_request_review :
23
23
types : [submitted]
24
24
25
+ permissions :
26
+ contents : read
27
+ pull-requests : write
28
+
25
29
jobs :
26
30
determine-test-scope :
27
31
runs-on : [ deploynode ]
@@ -185,12 +189,8 @@ jobs:
185
189
echo "total=$TOTAL_COVERAGE" >> "$GITHUB_ENV"
186
190
echo "### Total coverage: ${TOTAL_COVERAGE}%"
187
191
188
- - name : verify-coverage-report-location
189
- run : |
190
- ls $GITHUB_WORKSPACE
191
-
192
192
- name : Produce the diff coverage report
193
- if : matrix.python-version == '3.13'
193
+ if : matrix.python-version == '3.13' && github.event_name == 'pull_request'
194
194
run : |
195
195
source ${GITHUB_WORKSPACE}/.venv/bin/activate
196
196
git config --global --add safe.directory ${GITHUB_WORKSPACE}
@@ -199,7 +199,7 @@ jobs:
199
199
--format markdown:diff-coverage.md
200
200
201
201
- uses : actions/github-script@v7
202
- if : matrix.python-version == '3.13'
202
+ if : matrix.python-version == '3.13' && github.event_name == 'pull_request'
203
203
with :
204
204
result-encoding : string
205
205
script : |
You can’t perform that action at this time.
0 commit comments