Skip to content

Commit

Permalink
QSTASH_TOKEN
Browse files Browse the repository at this point in the history
  • Loading branch information
MeshanKhosla committed Jan 11, 2024
1 parent a566594 commit a38a31d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,5 @@ jobs:
- name: Run tests
run: |
export QSTASH_TOKEN="${{ secrets.QSTASH_TOKEN }}"
export QSTASH_TOKEN="${{ secrets.QSTASH_TOKEN }}"
poetry run pytest
4 changes: 3 additions & 1 deletion qstash_token.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import os
import dotenv

QSTASH_TOKEN = os.environ.get("QSTASH_TOKEN", dotenv.dotenv_values()["QSTASH_TOKEN"])
QSTASH_TOKEN = os.environ.get(
"QSTASH_TOKEN", dotenv.dotenv_values().get("QSTASH_TOKEN")
)

0 comments on commit a38a31d

Please sign in to comment.