Skip to content

Commit

Permalink
ci: add prefixes to all env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
andylolz committed May 13, 2024
1 parent 8dbddbb commit 5edcb8d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/fetch_tweets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ jobs:
TW_EMAIL: ${{ secrets.EMAIL }}
TW_PROXY: ${{ secrets.PROXY }}
TW_COOKIES: ${{ secrets.COOKIES }}
UPDATE_SECRET: 1
GH_UPDATE_SECRET: 1
GH_TOKEN: ${{ secrets.GH_TOKEN }}
REPO: ${{ github.repository }}
GH_REPO: ${{ github.repository }}

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
Expand Down
2 changes: 1 addition & 1 deletion x_notes/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import requests
from nacl import encoding, public

_base_url = f"https://api.github.com/repos/{environ.get('REPO')}/actions/secrets"
_base_url = f"https://api.github.com/repos/{environ.get('GH_REPO')}/actions/secrets"
_headers = {
"Authorization": f"Bearer {environ.get('GH_TOKEN')}",
}
Expand Down
2 changes: 1 addition & 1 deletion x_notes/tweets.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def login() -> API:
logger.info("Attempting to log in")
await api.pool.login_all()
account = await api.pool.get(username)
if environ.get("UPDATE_SECRET"):
if environ.get("GH_UPDATE_SECRET"):
logger.info("Updating secret ...")
update_secret("COOKIES", json.dumps(account.cookies))
return api
Expand Down

0 comments on commit 5edcb8d

Please sign in to comment.