Skip to content

Commit 210992b

Browse files
Use saved Instagram session in CI to avoid login challenges
1 parent 2629dfc commit 210992b

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/rescuegroups-api.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
- name: Install dependencies
2525
run: pip install --break-system-packages -r requirements.txt
2626

27+
- name: Restore Instagram session
28+
env:
29+
INSTAGRAM_SESSION: ${{ secrets.INSTAGRAM_SESSION }}
30+
run: echo "$INSTAGRAM_SESSION" > ig_session.json
31+
2732
- name: Call RescueGroups API
2833
env:
2934
CUTEPETSBOSTON_RESCUEGROUPS_API_KEY: ${{ secrets.CUTEPETSBOSTON_RESCUEGROUPS_API_KEY }}
@@ -32,7 +37,4 @@ jobs:
3237
BLUESKY_HANDLE: ${{ secrets.BLUESKY_HANDLE }}
3338
BLUESKY_PASSWORD: ${{ secrets.BLUESKY_PASSWORD }}
3439
INSTAGRAM_PROXY: ${{ secrets.INSTAGRAM_PROXY }}
35-
run: |
36-
pwd
37-
ls
38-
python ./main.py
40+
run: python ./main.py

0 commit comments

Comments
 (0)