Skip to content

Commit 5f4cc52

Browse files
committed
Fail checks if changes found
1 parent 4195955 commit 5f4cc52

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/pull-request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
PR_NUMBER: ${{github.event.pull_request.number}}
4242
- name: Push changes
4343
uses: peter-evans/create-pull-request@v8.1.0
44+
id: changes
4445
with:
4546
token: ${{github.token}}
4647
commit-message: ${{steps.info.outputs.title}}
@@ -56,6 +57,13 @@ jobs:
5657
labels: |
5758
dependencies
5859
auto
60+
- name: Report status
61+
if: >
62+
steps.changes.outputs.pull-request-operation == 'created' ||
63+
steps.changes.outputs.pull-request-operation == 'updated'
64+
uses: actions/github-script@v8.0.0
65+
with:
66+
script: core.setFailed('Build changes detected')
5967
check-formatting-all:
6068
name: Check Formatting (All)
6169
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)