From 31ffb0c36e80549dca84375e972ee1f19b32fbe6 Mon Sep 17 00:00:00 2001 From: shenlan Date: Mon, 29 Sep 2025 23:56:16 +0800 Subject: [PATCH] Skip Pulumi jobs when token is unavailable --- .github/workflows/iac-pipeline-vultr-landingzone-baseline.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/iac-pipeline-vultr-landingzone-baseline.yaml b/.github/workflows/iac-pipeline-vultr-landingzone-baseline.yaml index 2b366c5b..5ba145e6 100644 --- a/.github/workflows/iac-pipeline-vultr-landingzone-baseline.yaml +++ b/.github/workflows/iac-pipeline-vultr-landingzone-baseline.yaml @@ -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