File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Substack Bot Automation
2-
32on :
43 schedule :
54 # Run every weekday at 9:30 AM EST (2:30 PM UTC)
1110 required : false
1211 default : ' true'
1312 type : boolean
14-
1513jobs :
1614 run-substack-bot :
1715 runs-on : ubuntu-latest
2119 uses : actions/checkout@v4
2220
2321 - name : Set up Python
24- uses : actions/setup-python@v4
22+ uses : actions/setup-python@v5
2523 with :
2624 python-version : ' 3.11'
2725
3331
3432 - name : Run Substack Bot
3533 env :
36- SUBSTACK_EMAIL : ${{ secrets.SUBSTACK_EMAIL }}
37- SUBSTACK_PASSWORD : ${{ secrets.SUBSTACK_PASSWORD }}
34+ SUBSTACK_COOKIE : ${{ secrets.SUBSTACK_COOKIE }}
3835 run : |
3936 python substack_bot.py
40-
41- - name : Upload logs (if failure)
42- if : failure()
43- uses : actions/upload-artifact@v3
44- with :
45- name : bot-logs
46- path : |
47- *.log
48- screenshots/
49- retention-days : 7
You can’t perform that action at this time.
0 commit comments