Skip to content

Commit

Permalink
Add missing environment secret in GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 23, 2024
1 parent cacf9f6 commit 11d70d5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/sst.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ on:
workflow_call:
inputs:
environment:
description: 'GitHub environment name'
description: "GitHub environment name"
required: true
type: string
sst-stage:
description: 'SST deployment stage'
description: "SST deployment stage"
required: true
type: string
secrets:
CLOUDFLARE_API_TOKEN:
required: true
DATABASE_URL:
required: true
MONGODB_URI:
required: true
SG_CARS_TRENDS_API_TOKEN:
Expand All @@ -29,6 +31,7 @@ jobs:
environment: ${{ inputs.environment }}
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
MONGODB_URI: ${{ secrets.MONGODB_URI }}
SG_CARS_TRENDS_API_TOKEN: ${{ secrets.SG_CARS_TRENDS_API_TOKEN }}
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}
Expand All @@ -51,7 +54,7 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: latest
cache: 'pnpm'
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- uses: aws-actions/configure-aws-credentials@v4
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/sst.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ name: Deployment (Dev)
on:
push:
branches-ignore:
- 'main'
- 'release/**'

- "main"
- "release/**"

permissions:
id-token: write
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sst.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Deployment (Prod)
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+"

permissions:
id-token: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sst.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Deployment (Staging)
on:
push:
branches:
- 'main'
- 'release/**'
- "main"
- "release/**"
tags-ignore:
- '*'
- "*"

permissions:
id-token: write
Expand Down

0 comments on commit 11d70d5

Please sign in to comment.