actions: Cleaned up duplicate code
All checks were successful
Build Docker / CheckFiles (push) Successful in 6s
Build Docker / Build Docker (push) Successful in 19s

This commit is contained in:
Nathan Woodburn 2023-07-27 22:43:39 +10:00
parent 5aaaa42fea
commit fae433918d
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 10 additions and 29 deletions

View File

@ -1,11 +1,14 @@
name: Build Docker
run-name: Build Docker
run-name: Build Docker Image
on: [push]
jobs:
Build Docker:
CheckFiles:
runs-on: ubuntu-latest
steps:
- name: Commiter
run: |
echo "Commited by: ${{ gitea.actor }}!"
- name: Checkout
uses: actions/checkout@v2
- name: Check files
@ -18,6 +21,11 @@ jobs:
echo "File $file is correct!"
fi
done
Build Docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build Docker image
run : |
apt-get install ca-certificates curl gnupg

View File

@ -1,27 +0,0 @@
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