Skip to content

alert-update-terraform-modules #141

alert-update-terraform-modules

alert-update-terraform-modules #141

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@v4
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@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