alert-update-terraform-modules #239
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: alert-update-terraform-modules | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| workflow_dispatch: | |
| jobs: | |
| notification-update-flags: | |
| name: Send email with terraform modules updates | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Execute diff and send email | |
| env: | |
| AWS_REGION: ${{ secrets.EMAIL_AWS_REGION }} | |
| AWS_ACCESS_KEY_ID: ${{ secrets.EMAIL_AWS_KEY_ID }} | |
| AWS_SECRET_ACCESS_KEY: ${{ secrets.EMAIL_AWS_SECRET_KEY }} | |
| run: | | |
| pip3 install -r .github/scripts/watchers/requirements.txt | |
| python3 -u .github/scripts/watchers/terraform-modules-update.py \ | |
| -c assets/libraries/common.json \ | |
| -u https://registry.terraform.io/v1/modules | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v6 | |
| with: | |
| title: "feat(queries): update terraform registry data on commons.json" | |
| token: ${{ secrets.KICS_BOT_PAT }} | |
| commit-message: "feat(queries): update terraform registry data on commons.json" | |
| delete-branch: true | |
| branch: feature/kicsbot-update-queries-docs | |
| body: | | |
| **Automated Changes** | |
| Updating terraform registry data on commons.json. | |
| Triggered by SHA: _${{ github.sha }}_ | |
| labels: terraform |