GitHub Actions should fail on error, but it does not #4286
-
Hi community, I would like GitHub Action to fail, if there is an error and break the build. I'm publishing with DITA-OT project files. When I build with Oxygen XML, Oxygen XML crashes on my project with a DOTJ012F (because my test file contains invalid grammar), which is correct and expected. But GitHub Actions just overflows the warnings and errors and does not fail the build. I've set This is the relevant section of the GitHub Action YAML file: # Install all plugins and build the test files
- name: 🚀 Build PDF using DITA-OT 3.7.4
uses: dita-ot/dita-ot-action@master
with:
dita-ot-version: 3.7.4
install : |
dita install com.dometic.dita-doctypes.zip --force
dita install com.dometic.dita-technical-data.zip --force
dita install https://github.com/dita-community/org.dita-community.split-page-sequences/archive/refs/heads/develop.zip --force
dita install com.dometic.dita-ot-pdf.zip --force
build: |
dita --project=test-files/test-files.xml --processing-mode=strict --verbose Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I haven't written the DITA-OT GitHub Action, but my guess is that there's nothing more you can do. The action code like doesn't catch the exit code and set the result of the job as failure. I think @jason-fox is the best to answer this question. |
Beta Was this translation helpful? Give feedback.
I haven't written the DITA-OT GitHub Action, but my guess is that there's nothing more you can do. The action code like doesn't catch the exit code and set the result of the job as failure. I think @jason-fox is the best to answer this question.