fix: Update file html removal script
Some checks failed
Build Docker / Build Docker (push) Has been cancelled
Build Docker / Build ARM Docker (push) Has been cancelled

This commit is contained in:
Nathan Woodburn 2023-12-13 12:57:47 +11:00
parent 858610d3a8
commit aaa8364a16
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1

View File

@ -3,46 +3,17 @@ run-name: Build Docker Image
on: [push] on: [push]
jobs: jobs:
FixFiles:
runs-on: ubuntu-latest
steps:
- name: Commiter
run: |
echo "Commited by: ${{ gitea.actor }}!"
- name: Checkout
uses: actions/checkout@v2
- name: Fix files
run: |
for file in *.html; do
sed -i 's/\.html//g' "$file"
done
CheckFiles:
runs-on: ubuntu-latest
needs: FixFiles
steps:
- name: Commiter
run: |
echo "Commited by: ${{ gitea.actor }}!"
- name: Checkout
uses: actions/checkout@v2
- 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
Build Docker: Build Docker:
runs-on: [ubuntu-latest, amd] runs-on: [ubuntu-latest, amd]
needs: CheckFiles needs: CheckFiles
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Fix Files
run : |
for file in *.html; do
sed -i 's/\.html//g' "$file"
done
- name: Install Docker - name: Install Docker
run : | run : |
apt-get install ca-certificates curl gnupg apt-get install ca-certificates curl gnupg
@ -68,6 +39,11 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Fix Files
run : |
for file in *.html; do
sed -i 's/\.html//g' "$file"
done
- name: Install Docker - name: Install Docker
run : | run : |
apt-get install ca-certificates curl gnupg apt-get install ca-certificates curl gnupg