Skip to content

Commit 765e2d7

Browse files
committed
Fixing doc badge
1 parent 7567179 commit 765e2d7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/website-status-check.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,8 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Check website status
13-
uses: upptime/uptime-monitor@v1
14-
with:
15-
urls: https://django-appt-doc.adamspierredavid.com
16-
assignees: adamspd # Replace with your GitHub username
17-
18-
- name: Generate badge
1913
run: |
20-
if [ ${{ job.status }} == 'success' ]; then
14+
if curl -sSf https://django-appt-doc.adamspierredavid.com > /dev/null; then
2115
echo "STATUS=up" >> $GITHUB_ENV
2216
echo "COLOR=brightgreen" >> $GITHUB_ENV
2317
else
@@ -29,9 +23,10 @@ jobs:
2923
uses: schneegans/[email protected]
3024
with:
3125
auth: ${{ secrets.GIST_SECRET }}
32-
gistID: d52b1c6c561ebbf94ddc2a8b52561908 # You'll need to create a gist and put its ID here
33-
label: django-appointment docs
26+
gistID: ${{ secrets.GIST_ID }}
27+
filename: django-appointment-doc-status.json
28+
label: docs
3429
message: ${{ env.STATUS }}
3530
color: ${{ env.COLOR }}
36-
isError: ${{ job.status == 'failure' }}
31+
isError: ${{ env.STATUS == 'down' }}
3732
namedLogo: django

0 commit comments

Comments
 (0)