File tree Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Expand file tree Collapse file tree 2 files changed +38
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Website Status Check
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' */30 * * * *' # Runs every 30 minutes
6
+ workflow_dispatch : # Allows manual triggering
7
+
8
+ jobs :
9
+ check_website :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - 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
19
+ run : |
20
+ if [ ${{ job.status }} == 'success' ]; then
21
+ echo "STATUS=up" >> $GITHUB_ENV
22
+ echo "COLOR=brightgreen" >> $GITHUB_ENV
23
+ else
24
+ echo "STATUS=down" >> $GITHUB_ENV
25
+ echo "COLOR=red" >> $GITHUB_ENV
26
+ fi
27
+
28
+ - name : Create status badge
29
+ uses :
schneegans/[email protected]
30
+ with :
31
+ auth : ${{ secrets.GIST_SECRET }}
32
+ gistID : d52b1c6c561ebbf94ddc2a8b52561908 # You'll need to create a gist and put its ID here
33
+ label : django-appointment docs
34
+ message : ${{ env.STATUS }}
35
+ color : ${{ env.COLOR }}
36
+ isError : ${{ job.status == 'failure' }}
37
+ namedLogo : django
Original file line number Diff line number Diff line change 2
2
3
3
![ Tests] ( https://github.com/adamspd/django-appointment/actions/workflows/tests.yml/badge.svg )
4
4
![ Published on PyPi] ( https://github.com/adamspd/django-appointment/actions/workflows/publish.yml/badge.svg )
5
- [ ![ Doc] ( https://github. com/adamspd/django-appointment-doc/actions/workflows/build-docs.yml/badge.svg )] ( https://django-appt-doc.adamspierredavid.com )
5
+ [ ![ Doc] ( https://img.shields.io/endpoint?url=https://gist.githubusercontent. com/adamspd/d52b1c6c561ebbf94ddc2a8b52561908/raw/ django-appointment-doc-status.json )] ( https://django-appt-doc.adamspierredavid.com )
6
6
[ ![ Current Release Version] ( https://img.shields.io/github/release/adamspd/django-appointment.svg?style=flat-square&logo=github )] ( https://github.com/adamspd/django-appointment/releases )
7
7
[ ![ pypi Version] ( https://img.shields.io/pypi/v/django-appointment.svg?style=flat-square&logo=pypi&logoColor=white )] ( https://pypi.org/project/django-appointment/ )
8
8
[ ![ PyPi downloads] ( https://static.pepy.tech/personalized-badge/django-appointment?period=total&units=international_system&left_color=grey&right_color=orange&left_text=pip%20downloads )] ( https://pypi.org/project/django-appointment/ )
You can’t perform that action at this time.
0 commit comments