fix(ci): correct dry_run context in Terraform matrix workflows

This commit is contained in:
Haitao Pan 2025-11-17 22:33:32 +08:00
parent e6fccac7e8
commit 950a68f6eb
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ env:
jobs:
terraform:
name: "${{ matrix.env }} :: pipeline (dry_run=${{ env.DRY_RUN }})"
name: "${{ matrix.env }} :: pipeline (dry_run=${{ inputs.dry_run }})"
runs-on: ubuntu-latest
strategy:
@ -70,3 +70,4 @@ jobs:
working-directory: ${{ env.BASE_DIR }}/${{ matrix.env }}
if: ${{ env.DRY_RUN == 'false' }}
run: terraform output -json

View File

@ -20,7 +20,7 @@ env:
jobs:
terraform:
name: "${{ matrix.env }} :: pipeline (dry_run=${{ env.DRY_RUN }})"
name: "${{ matrix.env }} :: pipeline (dry_run=${{ inputs.dry_run }})"
runs-on: ubuntu-latest
strategy: