Skip to content

Move to generated folder, test with condition removed for CFCloudwatch #4

Move to generated folder, test with condition removed for CFCloudwatch

Move to generated folder, test with condition removed for CFCloudwatch #4

name: commit policy removing comments
on:
push:
branches:
- 'main'
paths:
- 'aws-iam-policies/docs/*-doc-*.json5'
jobs:
testJob:
name: Remove Comments
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run:
pip install json5
- run: python3 main.py ${{ steps.modifieddocfiles.outputs.added_modified }}
- name: commit files
run: |
git status
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "Remove comments and commit json file" --allow-empty)
git push -f