superlint/test/linters/github_actions/actions_bad_01.yml
Marco Ferrari e6cf8d3845
Move tests to the test directory (#4985)
* Move tests to the test directory

* Fix linting errors

* Add states back

* Add xml back
2023-12-15 08:50:35 +00:00

28 lines
594 B
YAML

---
name: Github Actions Bad
on:
push:
pull_request:
jobs:
github_actions_bad:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- if: github.actor == 'dependabot[bot]'
run: |
# CMD
HELLO_WORLD=($(echo "Hello World" | cut -f1 -d' ' 2>&1))
# Load the error code
ERROR_CODE=$?
# Check the shell
if [ $ERROR_CODE -ne 0]; then
echo "We did it!"
exit 0
else
echo "We done goofed it..."
echo $HELLO_WORLD
exit 1
fi