Automated Pull Request From main to feature/test Branch #857
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |