Skip to content

Commit a2717fd

Browse files
committed
docs: catch invalid target references
The scheduled linkcheck job fails without notification. To catch the failure, a github workflow has been added which comments on issue 4106 so that the maintainers get notified. Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
1 parent fa09e4a commit a2717fd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/linkcheck.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Linkcheck
22

33
on:
4+
pull_request: # Temporarily test using PR, remove this before merge
5+
branches:
6+
- main
47
schedule:
58
- cron: '1 2 * * 3'
69

@@ -15,3 +18,15 @@ jobs:
1518
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
1619
tools: docs.linkcheck.bin
1720
- run: postgrest-docs-linkcheck
21+
22+
on-linkcheck-fail:
23+
runs-on: ubuntu-latest
24+
needs: linkcheck
25+
if: failure()
26+
steps:
27+
- name: Notify on linkcheck failure by commenting
28+
uses: peter-evans/create-or-update-comment@v4
29+
with:
30+
issue-number: 4106
31+
body: |
32+
❌ **Linkcheck Job Failed!**

docs/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ Here are some companies that use PostgREST in production.
214214
- See how Nimbus uses PostgREST in `Paul Copplestone's blog post <https://paul.copplest.one/blog/nimbus-tech-2019-04.html>`_.
215215
* `OpenBooking <https://openbooking.ch>`_
216216
* `Supabase <https://supabase.com>`_
217+
* `Fake link <https://fake.postgrest.com>`_ .. TODD remove this before merge
217218

218219
Testimonials
219220
------------

0 commit comments

Comments
 (0)