Merge pull request #105 from svc-design/codex/fix-pulumi-access-token-error

Skip Pulumi jobs when token is unavailable
This commit is contained in:
shenlan 2025-09-30 00:02:55 +08:00 committed by GitHub
commit b161945541
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,6 +61,7 @@ env:
jobs:
preview:
name: Preview baseline changes
if: ${{ secrets.PULUMI_ACCESS_TOKEN != '' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -84,7 +85,7 @@ jobs:
apply:
name: Apply to production stack
needs: preview
if: github.ref == 'refs/heads/main'
if: github.ref == 'refs/heads/main' && secrets.PULUMI_ACCESS_TOKEN != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4