Skip to content

Commit e95c1a2

Browse files
authored
Update pythonanywhere.yml
added auto relaod
1 parent 43ab4e7 commit e95c1a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/pythonanywhere.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,11 @@ jobs:
2121
-d '{"input": "git pull origin master\n"}' \
2222
-H "Content-Type: application/json"
2323
24+
- name: Reload PythonAnywhere Web App
25+
run: |
26+
curl -s -X POST \
27+
"https://www.pythonanywhere.com/api/v0/user/${{ secrets.PA_USERNAME }}/webapps/${{ secrets.PA_USERNAME }}.pythonanywhere.com/reload/"
28+
-H "Authorization: Token ${{ secrets.PA_API_TOKEN }}" \
29+
30+
2431

0 commit comments

Comments
 (0)