Skip to content

Commit

Permalink
Update env variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed Jun 5, 2024
1 parent d36f3fc commit 8de4497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/fetch_tweets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
- name: Fetch tweets
run: poetry run python -m x_notes.fetch_tweets
env:
TW_USER: ${{ secrets.USER }}
TW_PASS: ${{ secrets.PASS }}
TW_EMAIL: ${{ secrets.EMAIL }}
TW_PROXY: ${{ secrets.PROXY }}
TW_COOKIES: ${{ secrets.COOKIES }}
TW_USER: ${{ secrets.TW_USER }}
TW_PASS: ${{ secrets.TW_PASS }}
TW_EMAIL: ${{ secrets.TW_EMAIL }}
TW_PROXY: ${{ secrets.TW_PROXY }}
TW_COOKIES: ${{ secrets.TW_COOKIES }}
GH_UPDATE_SECRET: 1
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_REPO: ${{ github.repository }}
Expand Down
2 changes: 1 addition & 1 deletion x_notes/tweets.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async def login(api: API) -> None:
account = await api.pool.get(username)
if environ.get("GH_UPDATE_SECRET"):
logger.info("Updating secret ...")
update_secret("COOKIES", json.dumps(account.cookies))
update_secret("TW_COOKIES", json.dumps(account.cookies))


async def fetch_tweets() -> None:
Expand Down

0 comments on commit 8de4497

Please sign in to comment.