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