feat: support deleting default VPCs in multiple regions #8
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
| --- | |
| # The workflow name **must** be "autofix.ci" for Autofix CI to function correctly. | |
| # Any deviation from this name will cause Autofix CI to fail, as it relies on this | |
| # specific identifier for execution. This is a strict requirement of Autofix CI. | |
| name: autofix.ci | |
| on: pull_request | |
| permissions: {} | |
| jobs: | |
| autofix: | |
| runs-on: ubuntu-24.04 | |
| permissions: {} | |
| timeout-minutes: 15 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| persist-credentials: false | |
| - uses: aquaproj/aqua-installer@5e54e5cee8a95ee2ce7c04cb993da6dfad13e59c # v3.1.2 | |
| with: | |
| aqua_version: v2.43.0 | |
| - name: Update aqua-checksums.json | |
| run: aqua upc -prune | |
| # go mod tidy | |
| - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 | |
| with: | |
| go-version-file: go.mod | |
| - run: go mod tidy | |
| # gofumpt | |
| - name: Get changed Go files | |
| id: changed-files | |
| uses: tj-actions/changed-files@e7b157b1c4ad44acfc8d9be14b8cd8f5058636e3 # v45.0.6 | |
| with: | |
| use_rest_api: "true" | |
| files: | | |
| **/*.go | |
| - if: steps.changed-files.outputs.all_changed_files_count != '0' | |
| env: | |
| ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }} | |
| run: | | |
| # shellcheck disable=SC2086 | |
| gofumpt -l -w $ALL_CHANGED_FILES | |
| # Run pre-commit hooks for whitespace fixes | |
| - name: Install pre-commit | |
| run: | | |
| pip install pre-commit | |
| - name: Run pre-commit whitespace fixes | |
| run: | | |
| # Run only the whitespace-related hooks from pre-commit | |
| pre-commit run trailing-whitespace --all-files || true | |
| pre-commit run end-of-file-fixer --all-files || true | |
| - uses: autofix-ci/action@2891949f3779a1cafafae1523058501de3d4e944 # v1.3.1 |