-
Notifications
You must be signed in to change notification settings - Fork 315
39 lines (36 loc) · 1.44 KB
/
alert-update-terraform-modules.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
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@c5a7806660adbe173f04e3e038b0ccdcd758773c # 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