We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb7c999 commit 045fc0eCopy full SHA for 045fc0e
1 file changed
.github/workflows/dev-ci.yml
@@ -6,8 +6,7 @@ name: Development Continuous Integration
6
permissions:
7
contents: write
8
9
-env:
10
- PAYSTACK_SECRET_KEY: ${{ secrets.PAYSTACK_SECRET_KEY }}
+
11
12
on:
13
push:
@@ -20,6 +19,8 @@ jobs:
20
19
name: Format, lint & test project
21
if: github.actor != 'github-actions[bot]'
22
runs-on: ubuntu-latest
+ env:
23
+ PAYSTACK_SECRET_KEY: ${{ secrets.PAYSTACK_SECRET_KEY }}
24
25
steps:
26
- name: Checkout
@@ -35,6 +36,14 @@ jobs:
35
36
run: uv run ruff format .
37
- name: Lint with ruff
38
run: uv run ruff check . --fix
39
+ - name: Check secret
40
+ run: |
41
+ if [ -z "$PAYSTACK_SECRET_KEY" ]; then
42
+ echo "SECRET NOT SET"
43
+ exit 1
44
+ else
45
+ echo "SECRET IS SET"
46
+ fi
47
- name: Test package
48
run: |
49
uv run python -c "import os; print('key is ->',os.environ['PAYSTACK_SECRET_KEY'])"
0 commit comments