From aaa8364a16d3fac607357b223c57e053db0202d5 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Wed, 13 Dec 2023 12:57:47 +1100 Subject: [PATCH] fix: Update file html removal script --- .gitea/workflows/build.yml | 44 +++++++++----------------------------- 1 file changed, 10 insertions(+), 34 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 64dcccd..eeb3a3b 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -3,46 +3,17 @@ run-name: Build Docker Image on: [push] 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: runs-on: [ubuntu-latest, amd] needs: CheckFiles steps: - name: Checkout uses: actions/checkout@v2 + - name: Fix Files + run : | + for file in *.html; do + sed -i 's/\.html//g' "$file" + done - name: Install Docker run : | apt-get install ca-certificates curl gnupg @@ -68,6 +39,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + - name: Fix Files + run : | + for file in *.html; do + sed -i 's/\.html//g' "$file" + done - name: Install Docker run : | apt-get install ca-certificates curl gnupg