Skip to content

Commit 86ec55b

Browse files
committed
Add error exit code if there are changes for the asciidoc comment workflow (#357)
1 parent 27d4518 commit 86ec55b

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
@@ -38,3 +38,6 @@ jobs:
3838
issue_number: context.payload.pull_request.number,
3939
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.'
4040
})
41+
- name: Error if .asciidoc files changed
42+
if: steps.check-files.outputs.asciidoc_changed == 'true'
43+
run: exit 1

0 commit comments

Comments
 (0)