diff --git a/.github/workflows/linkcheck.yaml b/.github/workflows/linkcheck.yaml index 4706add927..3ee21197b0 100644 --- a/.github/workflows/linkcheck.yaml +++ b/.github/workflows/linkcheck.yaml @@ -1,9 +1,15 @@ name: Linkcheck on: + pull_request: # Temporarily test using PR, remove this before merge + branches: + - main schedule: - cron: '1 2 * * 3' +permissions: + issues: write + jobs: linkcheck: runs-on: ubuntu-24.04 @@ -15,3 +21,15 @@ jobs: authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' tools: docs.linkcheck.bin - run: postgrest-docs-linkcheck + + on-linkcheck-fail: + runs-on: ubuntu-latest + needs: linkcheck + if: ${{ always() && needs.linkcheck.result == 'failure' }} + steps: + - name: Notify on linkcheck failure by commenting + uses: peter-evans/create-or-update-comment@v4 + with: + issue-number: 4106 + body: | + ❌ **Linkcheck Job Failed!** diff --git a/docs/index.rst b/docs/index.rst index 3761ead2ad..ccf5e35b51 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -214,6 +214,7 @@ Here are some companies that use PostgREST in production. - See how Nimbus uses PostgREST in `Paul Copplestone's blog post `_. * `OpenBooking `_ * `Supabase `_ +* `Fake link `_ .. TODD remove this before merge Testimonials ------------