Skip to content

Commit

Permalink
Fixed the issue with Dropbox Upload which was happening because the t…
Browse files Browse the repository at this point in the history
…oken expires, added the refreh token logic
  • Loading branch information
rhnfzl committed Aug 30, 2024
1 parent 05bba88 commit 6f8fd02
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/reddit_scraper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ jobs:
- name: Download existing Reddit data from Dropbox
env:
DROPBOX_TOKEN: ${{ secrets.DROPBOX_TOKEN }}
DROPBOX_REFRESH_TOKEN: ${{ secrets.DROPBOX_REFRESH_TOKEN }}
DROPBOX_APP_KEY: ${{ secrets.DROPBOX_APP_KEY }}
DROPBOX_APP_SECRET: ${{ secrets.DROPBOX_APP_SECRET }}
run: |
python dropbox_utils.py --download # Add a command-line option to control what the script does
Expand All @@ -40,6 +42,8 @@ jobs:
- name: Upload updated Reddit data to Dropbox
env:
DROPBOX_TOKEN: ${{ secrets.DROPBOX_TOKEN }}
DROPBOX_REFRESH_TOKEN: ${{ secrets.DROPBOX_REFRESH_TOKEN }}
DROPBOX_APP_KEY: ${{ secrets.DROPBOX_APP_KEY }}
DROPBOX_APP_SECRET: ${{ secrets.DROPBOX_APP_SECRET }}
run: |
python dropbox_utils.py --upload # Another command-line option for the upload process

0 comments on commit 6f8fd02

Please sign in to comment.