From 7870e8f6c91220a761017e552d6b04009eb8adee Mon Sep 17 00:00:00 2001 From: Carl Benson Date: Wed, 5 Jun 2024 13:13:40 -0400 Subject: [PATCH] Consolidate rule update workflows --- .github/workflows/update-rules.yaml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-rules.yaml b/.github/workflows/update-rules.yaml index 5088891..7ec1c5c 100644 --- a/.github/workflows/update-rules.yaml +++ b/.github/workflows/update-rules.yaml @@ -21,12 +21,15 @@ jobs: cd scripts pip install -r requirements.txt python index.py update-config-rules + python index.py update-rule-packs - name: Get changed files id: changed-files uses: tj-actions/changed-files@v44 with: - files: "*.tf" + files: | + "*.tf" + "files/*" - name: List all changed files run: echo '${{ steps.changed-files.outputs.all_changed_files }}' @@ -64,7 +67,9 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} base: main branch: auto-update-aws-config-rules - add-paths: managed_rules_*.tf + add-paths: | + managed_rules_*.tf + files/* commit-message: Automatic updates to AWS managed Config Rules delete-branch: true title: '[Auto] Update AWS Config Rules'