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