File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change 10
10
runs-on : ubuntu-latest
11
11
steps :
12
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
13
run : |
20
- if [ ${{ job.status }} == 'success' ] ; then
14
+ if curl -sSf https://django-appt-doc.adamspierredavid.com > /dev/null ; then
21
15
echo "STATUS=up" >> $GITHUB_ENV
22
16
echo "COLOR=brightgreen" >> $GITHUB_ENV
23
17
else
29
23
uses :
schneegans/[email protected]
30
24
with :
31
25
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
34
29
message : ${{ env.STATUS }}
35
30
color : ${{ env.COLOR }}
36
- isError : ${{ job.status == 'failure ' }}
31
+ isError : ${{ env.STATUS == 'down ' }}
37
32
namedLogo : django
You can’t perform that action at this time.
0 commit comments