superlint/.automation/test/github_actions/actions_good_01.yml
Brett Logan f0e69a5a7d
Cleanup YAML Linting and Enable Rules (#2301)
* Fix yaml linting issues

* Enable yamllint rules

* Replace comment

* Address linting and set line-length longer

Co-authored-by: Lukas Gravley <admiralawkbar@github.com>
2022-01-06 09:59:15 -06:00

28 lines
608 B
YAML

---
name: GitHub Actions Good
on:
push:
pull_request:
jobs:
github_actions_good:
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