Skip to content

Testing updated 25 workflow example [2] #1124

Testing updated 25 workflow example [2]

Testing updated 25 workflow example [2] #1124

name: 47 - Force Failure
on: [pull_request]
jobs:
print-message:
runs-on: ubuntu-latest
steps:
- run: echo ${{ github.event.commits[0].message }}
api-tests:
if: contains(github.event.commits[0].message, '[test_api]')
runs-on: ubuntu-latest
steps:
- run: echo hello world
not-api-tests:
if: "!contains(github.event.commits[0].message, '[test_api]')"
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Force job failure
run: exit 1