mirror of
https://github.com/arsvendg/Stirling-PDF.git
synced 2026-07-16 19:33:11 +02:00
Guard PR commenting on pull requests (#6250)
# Description of Changes Attempt 2 at #6249
This commit is contained in:
@@ -100,7 +100,9 @@ jobs:
|
|||||||
MAVEN_PUBLIC_URL: ${{ secrets.MAVEN_PUBLIC_URL }}
|
MAVEN_PUBLIC_URL: ${{ secrets.MAVEN_PUBLIC_URL }}
|
||||||
|
|
||||||
- name: Comment on Java formatting failure
|
- name: Comment on Java formatting failure
|
||||||
if: steps.spotless-check.outcome == 'failure'
|
# Only post a comment on PRs. github-script's PR helpers need an
|
||||||
|
# issue/PR number, which doesn't exist on merge_group runs.
|
||||||
|
if: steps.spotless-check.outcome == 'failure' && github.event_name == 'pull_request'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||||
with:
|
with:
|
||||||
@@ -197,6 +199,9 @@ jobs:
|
|||||||
if-no-files-found: warn
|
if-no-files-found: warn
|
||||||
|
|
||||||
- name: Add coverage to PR with spring security ${{ matrix.spring-security }} and JDK ${{ matrix.jdk-version }}
|
- name: Add coverage to PR with spring security ${{ matrix.spring-security }} and JDK ${{ matrix.jdk-version }}
|
||||||
|
# The action only supports the pull_request event (it posts a PR comment),
|
||||||
|
# so skip it for merge_group runs and workflow_dispatch.
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
id: jacoco
|
id: jacoco
|
||||||
uses: madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848 # v1.7.2
|
uses: madrapps/jacoco-report@50d3aff4548aa991e6753342d9ba291084e63848 # v1.7.2
|
||||||
with:
|
with:
|
||||||
@@ -284,7 +289,9 @@ jobs:
|
|||||||
run: task frontend:check:all
|
run: task frontend:check:all
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Comment on frontend check failure
|
- name: Comment on frontend check failure
|
||||||
if: steps.frontend-check.outcome == 'failure'
|
# Only post a comment on PRs. github-script's PR helpers need an
|
||||||
|
# issue/PR number, which doesn't exist on merge_group runs.
|
||||||
|
if: steps.frontend-check.outcome == 'failure' && github.event_name == 'pull_request'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user