woodburn/.gitea/workflows/push.yml
Nathan Woodburn 8fd8de4920
Some checks failed
OnPush / CheckFiles (push) Failing after 6s
nathanwoodburn/woodburn/pipeline/head There was a failure building this commit
actions: Test check files 3
2023-07-17 16:51:32 +10:00

28 lines
643 B
YAML

name: OnPush
run-name: ${{ gitea.actor }} has pushed to woodburn repo
on: [push]
jobs:
CheckFiles:
runs-on: ubuntu-latest
steps:
- name: Commiter
run: |
echo "Commited by: ${{ gitea.actor }}!"
- name: Checkout
uses: actions/checkout@v2
- name: List HTML files
run: |
ls *.html
- name: Check files
run: |
for file in *.html; do
if grep -q "$file" "$file"; then
echo "File $file contains $file!"
exit 1
else
echo "File $file does not contain $file!"
fi
done