Outputs
The action provides these outputs for use in downstream workflow steps.
| Output |
Description |
exit-code |
CLI exit code |
result-json |
Raw JSON result from the CLI |
passed |
Whether the check passed (true/false) |
comment-body |
Generated comment markdown |
Example: Conditional Step
- name: Upload tests
id: drape
uses: drape-io/drape-action@v2
if: always()
continue-on-error: true
with:
command: tests
file: results.xml
api-key: ${{ secrets.DRAPE_API_KEY }}
- name: Fail if tests failed
if: steps.drape.outputs.passed == 'false'
run: exit 1