Skip to content

Commit da08833

Browse files
authored
Fix Reconcile job to use correct environment (#323)
* bump version * update workflow * add env to every job * remove test
1 parent 71df2a5 commit da08833

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

@@ -30,27 +32,13 @@ jobs:
3032
| sudo tee /etc/apt/sources.list.d/stripe.list
3133
sudo apt-get update -qq && sudo apt-get install -y -qq stripe
3234
33-
- name: Write Stripe CLI config
34-
env:
35-
STRIPE_CONFIG_TOML: ${{ secrets.STRIPE_CONFIG_TOML }}
36-
run: |
37-
mkdir -p ~/.config/stripe
38-
echo "$STRIPE_CONFIG_TOML" > ~/.config/stripe/config.toml
39-
chmod 600 ~/.config/stripe/config.toml
40-
echo "Stripe CLI config written to ~/.config/stripe/config.toml"
41-
42-
- name: Stripe CLI login
43-
env:
44-
STRIPE_API_KEY: ${{ secrets.GOLDI_LIVE_KEY }}
45-
run: echo "$STRIPE_API_KEY" | stripe login --interactive
46-
4735
- name: Create Stripe database
4836
id: create-db
4937
run: |
5038
echo "Creating Stripe database..."
51-
RESULT=$(stripe databases create)
39+
RESULT=$(stripe databases create --live)
5240
53-
DB_ID=$(echo "$RESULT" | grep -oE 'db_test_[A-Za-z0-9]+' | head -1)
41+
DB_ID=$(echo "$RESULT" | grep -oE 'db_[A-Za-z0-9]+' | head -1)
5442
DB_STRING=$(echo "$RESULT" | grep -oE 'postgresql://[^[:space:]]+')
5543
5644
if [ -z "$DB_ID" ]; then
@@ -141,7 +129,6 @@ jobs:
141129
142130
- name: Sigma validation
143131
env:
144-
STRIPE_API_KEY: ${{ secrets.GOLDI_LIVE_KEY }}
145132
DATABASE_URL: ${{ steps.create-db.outputs.db_string }}
146133
run: |
147134
set +e

0 commit comments

Comments
 (0)