Skip to content

Commit b73bb26

Browse files
authored
Fix workflow: remove deprecated actions and update steps
1 parent 68a248a commit b73bb26

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

.github/workflows/automation.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: Substack Bot Automation
2-
32
on:
43
schedule:
54
# Run every weekday at 9:30 AM EST (2:30 PM UTC)
@@ -11,7 +10,6 @@ on:
1110
required: false
1211
default: 'true'
1312
type: boolean
14-
1513
jobs:
1614
run-substack-bot:
1715
runs-on: ubuntu-latest
@@ -21,7 +19,7 @@ jobs:
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

@@ -33,17 +31,6 @@ jobs:
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

0 commit comments

Comments
 (0)