Skip to content

Commit 8becc4f

Browse files
Yostratonyxiao
authored andcommitted
Fix Reconcile job to use correct environment (#323)
* bump version * update workflow * add env to every job * remove test
1 parent 0306967 commit 8becc4f

2 files changed

Lines changed: 7 additions & 20 deletions

File tree

.github/workflows/audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Set up Node
4040
if: steps.check-key.outputs.has_key == 'true'
41-
uses: actions/setup-node@v4
41+
uses: actions/setup-node@v6
4242
with:
4343
node-version: 24
4444
cache: pnpm

.github/workflows/prod-e2e-test.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@ jobs:
1313
name: Create DB & monitor sync progress
1414
runs-on: ubuntu-24.04-arm
1515
timeout-minutes: 75
16+
env:
17+
STRIPE_API_KEY: ${{ secrets.GOLDI_LIVE_KEY }}
1618

1719
steps:
1820
- name: Checkout repository
19-
uses: actions/checkout@v4
21+
uses: actions/checkout@v5
2022

2123
- name: Setup Node.js
22-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@v6
2325
with:
2426
node-version: '24'
2527

@@ -33,27 +35,13 @@ jobs:
3335
| sudo tee /etc/apt/sources.list.d/stripe.list
3436
sudo apt-get update -qq && sudo apt-get install -y -qq stripe
3537
36-
- name: Write Stripe CLI config
37-
env:
38-
STRIPE_CONFIG_TOML: ${{ secrets.STRIPE_CONFIG_TOML }}
39-
run: |
40-
mkdir -p ~/.config/stripe
41-
echo "$STRIPE_CONFIG_TOML" > ~/.config/stripe/config.toml
42-
chmod 600 ~/.config/stripe/config.toml
43-
echo "Stripe CLI config written to ~/.config/stripe/config.toml"
44-
45-
- name: Stripe CLI login
46-
env:
47-
STRIPE_API_KEY: ${{ secrets.GOLDI_LIVE_KEY }}
48-
run: echo "$STRIPE_API_KEY" | stripe login --interactive
49-
5038
- name: Create Stripe database
5139
id: create-db
5240
run: |
5341
echo "Creating Stripe database..."
54-
RESULT=$(stripe databases create)
42+
RESULT=$(stripe databases create --live)
5543
56-
DB_ID=$(echo "$RESULT" | grep -oE 'db_test_[A-Za-z0-9]+' | head -1)
44+
DB_ID=$(echo "$RESULT" | grep -oE 'db_[A-Za-z0-9]+' | head -1)
5745
DB_STRING=$(echo "$RESULT" | grep -oE 'postgresql://[^[:space:]]+')
5846
5947
if [ -z "$DB_ID" ]; then
@@ -144,7 +132,6 @@ jobs:
144132
145133
- name: Sigma validation
146134
env:
147-
STRIPE_API_KEY: ${{ secrets.GOLDI_LIVE_KEY }}
148135
DATABASE_URL: ${{ steps.create-db.outputs.db_string }}
149136
run: |
150137
set +e

0 commit comments

Comments
 (0)