fix: check if preferencesStore is defined #4334
Workflow file for this run
This file contains hidden or 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: Docs destroy | |
| on: | |
| pull_request_target: # zizmor: ignore[dangerous-triggers] no attacker inputs are used here | |
| types: [closed] | |
| permissions: {} | |
| jobs: | |
| deploy: | |
| name: Docs Destroy | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| with: | |
| persist-credentials: false | |
| - name: Destroy Docs Subdomain | |
| env: | |
| TF_VAR_prefix_name: 'pr-${{ github.event.number }}' | |
| TF_VAR_prefix_event_type: 'pr' | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| TF_STATE_POSTGRES_CONN_STR: ${{ secrets.TF_STATE_POSTGRES_CONN_STR }} | |
| uses: gruntwork-io/terragrunt-action@aee21a7df999be8b471c2a8564c6cd853cb674e1 # v2.1.8 | |
| with: | |
| tg_version: '0.58.12' | |
| tofu_version: '1.7.1' | |
| tg_dir: 'deployment/modules/cloudflare/docs' | |
| tg_command: 'destroy -refresh=false' | |
| - name: Comment | |
| uses: actions-cool/maintain-one-comment@4b2dbf086015f892dcb5e8c1106f5fccd6c1476b # v3.2.0 | |
| with: | |
| number: ${{ github.event.number }} | |
| delete: true | |
| body-include: '<!-- Docs PR URL -->' |