Skip to content

Commit

Permalink
Add error exit code if there are changes for the asciidoc comment wor…
Browse files Browse the repository at this point in the history
…kflow (#357)
  • Loading branch information
reakaleek authored Jan 29, 2025
1 parent 71f641d commit 0da3f8d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/comment-on-asciidoc-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,6 @@ jobs:
issue_number: context.payload.pull_request.number,
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.'
})
- name: Error if .asciidoc files changed
if: steps.check-files.outputs.asciidoc_changed == 'true'
run: exit 1

0 comments on commit 0da3f8d

Please sign in to comment.