a5670af745
* Keycloak CI workflow refactoring Closes #15861 * Update testsuite/integration-arquillian/tests/base/testsuites/base-suite.sh Co-authored-by: Hynek Mlnařík <hmlnarik@users.noreply.github.com> * Update testsuite/integration-arquillian/tests/base/testsuites/suite.sh Co-authored-by: Hynek Mlnařík <hmlnarik@users.noreply.github.com> * Update testsuite/integration-arquillian/tests/base/testsuites/suite.sh Co-authored-by: Hynek Mlnařík <hmlnarik@users.noreply.github.com> * Update CodeQL actions Co-authored-by: Hynek Mlnařík <hmlnarik@users.noreply.github.com>
34 lines
837 B
YAML
34 lines
837 B
YAML
name: Check if a job passed
|
|
description: Fails if the job is required and was not successful
|
|
|
|
inputs:
|
|
required:
|
|
description: Is the job required
|
|
required: true
|
|
default: true
|
|
conclusion:
|
|
description: Job conclusion (success if passed, most likely empty otherwise)
|
|
required: true
|
|
|
|
outputs:
|
|
status:
|
|
description: "Check status"
|
|
value: ${{ steps.changes.outputs.java }}
|
|
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- id: check-job
|
|
name: Check job
|
|
shell: bash
|
|
run: |
|
|
if [ "${{ inputs.required }}" == "false" ]; then
|
|
echo "Not required to run, skipping"
|
|
else
|
|
if [ "${{ inputs.conclusion }}" == "success" ]; then
|
|
echo "Success"
|
|
else
|
|
echo "Required to run, but didn't succeed"
|
|
exit 1
|
|
fi
|
|
fi
|