tangled
alpha
login
or
join now
leaflet.pub
/
leaflet
289
fork
atom
a tool for shared writing and social publishing
289
fork
atom
overview
issues
27
pulls
pipelines
only run stripe sync on main
awarm.space
16 hours ago
0f4d9ed4
7f21d2c5
+1
-11
1 changed file
expand all
collapse all
unified
split
.github
workflows
stripe-sync.yml
+1
-11
.github/workflows/stripe-sync.yml
···
5
5
branches: [main]
6
6
paths: ["stripe/**"]
7
7
workflow_dispatch:
8
8
-
inputs:
9
9
-
mode:
10
10
-
description: "Stripe mode"
11
11
-
required: true
12
12
-
default: "test"
13
13
-
type: choice
14
14
-
options:
15
15
-
- test
16
16
-
- live
17
8
18
9
jobs:
19
10
sync:
20
11
runs-on: ubuntu-latest
21
21
-
environment: ${{ github.event.inputs.mode == 'live' && 'production' || 'staging' }}
22
12
steps:
23
13
- uses: actions/checkout@v4
24
14
- uses: actions/setup-node@v4
···
27
17
- run: npm ci
28
18
- run: npx tsx stripe/sync.ts
29
19
env:
30
30
-
STRIPE_SECRET_KEY: ${{ github.event.inputs.mode == 'live' && secrets.STRIPE_SECRET_KEY_LIVE || secrets.STRIPE_SECRET_KEY_TEST }}
20
20
+
STRIPE_SECRET_KEY: ${{ secrets.STRIPE_SECRET_KEY }}