diff --git a/.gitea/workflows/hugo.yaml b/.gitea/workflows/hugo.yaml index 2bae1a7..fa17afe 100644 --- a/.gitea/workflows/hugo.yaml +++ b/.gitea/workflows/hugo.yaml @@ -50,8 +50,12 @@ jobs: run: hugo - name: Check for broken links - run: mise linkcheck --offline - continue-on-error: gitea.ref == 'refs/heads/main' + run: | + if [ "${{ gitea.ref }}" = "refs/heads/main" ]; then + mise linkcheck --offline || true + else + mise linkcheck --offline + fi - name: Copy website to host uses: https://github.com/appleboy/scp-action@ff85246acaad7bdce478db94a363cd2bf7c90345 # v1.0.0