woodburn/.gitea/workflows/push.yml
Nathan Woodburn f026612db2
All checks were successful
OnPush / CheckFiles (push) Successful in 7s
actions: Remove jenkins
2023-07-17 16:54:39 +10:00

28 lines
650 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 canonical tag with .html!"
exit 1
else
echo "File $file is correct!"
fi
done