Skip to content

Commit 0da3f8d

Browse files
authored
Add error exit code if there are changes for the asciidoc comment workflow (#357)
1 parent 71f641d commit 0da3f8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/comment-on-asciidoc-changes.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ jobs:
3333
issue_number: context.payload.pull_request.number,
3434
body: 'It looks like this PR modifies one or more `.asciidoc` files. These files are being migrated to Markdown, and any changes merged now will be lost. See the [migration guide](https://elastic.github.io/docs-builder/migration/freeze/index.html) for details.'
3535
})
36+
- name: Error if .asciidoc files changed
37+
if: steps.check-files.outputs.asciidoc_changed == 'true'
38+
run: exit 1

0 commit comments

Comments
 (0)