chore(deps): update dependency @sveltejs/vite-plugin-svelte to v5 - autoclosed #56
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Destroy | |
on: | |
pull_request_target: | |
types: [closed] | |
env: | |
tofu_version: '1.7.1' | |
tg_version: '0.69.0' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
max-parallel: 1 | |
matrix: | |
environment: [ 'dev', 'prod' ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install 1Password CLI | |
uses: 1password/install-cli-action@v1 | |
- name: Install Terragrunt | |
uses: eLco/setup-terragrunt@v1 | |
with: | |
terragrunt_version: ${{ env.tg_version }} | |
- name: 'Install OpenTofu' | |
uses: opentofu/setup-opentofu@v1 | |
with: | |
tofu_version: ${{ env.tofu_version }} | |
tofu_wrapper: false | |
- name: Destroy All | |
working-directory: ${{ env.working_dir }} | |
env: | |
ENVIRONMENT: ${{ matrix.environment }} | |
TF_VAR_dist_dir: ${{ github.workspace }}/dist | |
TF_VAR_stage: pr-${{ github.event.number }} | |
OP_SERVICE_ACCOUNT_TOKEN: ${{ matrix.environment == 'prod' && secrets.OP_TF_PROD_ENV || secrets.OP_TF_DEV_ENV }} | |
working_dir: 'deployment' | |
run: op run --env-file=".env" -- terragrunt run-all destroy -refresh=false --terragrunt-non-interactive | |
- name: Comment | |
uses: actions-cool/maintain-one-comment@v3 | |
with: | |
number: ${{ github.event.number }} | |
delete: true | |
body-include: '<!-- web PR URL -->' |