Update Terraform Versions #370
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: Update Terraform Versions | |
| # Checks if any changes are required to be made to our documentation for supported Terraform versions. Runs daily and can be triggered manually. | |
| on: | |
| schedule: | |
| - cron: "0 7 * * *" # Everyday at 7:00 AM | |
| workflow_dispatch: | |
| jobs: | |
| update-tf-compatibility-matrix: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Update files | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: make update-tf-compatibility-matrix | |
| - name: Create PR | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e | |
| with: | |
| token: ${{ secrets.APIX_BOT_PAT }} | |
| title: "doc: Updates Terraform Compatibility Matrix documentation" | |
| commit-message: "doc: Updates Terraform Compatibility Matrix documentation" | |
| delete-branch: true | |
| branch: terraform-compatibility-matrix-update | |
| body: "Automatic updates for Terraform Compatibility Matrix documentation." | |
| update-tf-version-in-repository: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 | |
| - name: Update files | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: make update-tf-version-in-repository | |
| - name: Create PR | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e | |
| with: | |
| token: ${{ secrets.APIX_BOT_PAT }} | |
| title: "chore: Updates repository to use supported Terraform versions" | |
| commit-message: "chore: Updates repository to use supported Terraform versions" | |
| delete-branch: true | |
| branch: terraform-versions-update | |
| body: "Automatic updates for our repository to use supported Terraform versions." |