Skip to content

explicitly exit with status 0 on failure #8

explicitly exit with status 0 on failure

explicitly exit with status 0 on failure #8

Workflow file for this run

name: Test
on: push
jobs:
test:
name: Test Invalid
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Test Local Action
id: test_failure
uses: ./
with:
schema-url: https://raw.githubusercontent.com/thomasmost/gha-valjean/main/schema/example.schema.json
target-dir: samples_bad
continue-on-error: true
- name: Check that validation did not succeed
if: job.steps.test_failure.outcome != 'failure'
run: exit 1
- name: Succeed if validation failed
if: job.steps.test_failure.outcome != 'success'
run: exit 0