@@ -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