Skip to content

Commit

Permalink
Consolidate rule update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bensonce committed Jun 5, 2024
1 parent 3821a0c commit 7870e8f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/update-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit 7870e8f

Please sign in to comment.