Skip to content

CAT-24891 workflow template for terraform drift checking #131

CAT-24891 workflow template for terraform drift checking

CAT-24891 workflow template for terraform drift checking #131

Workflow file for this run

name: Update README.md
on:
workflow_dispatch:
pull_request:
types:
- opened
- reopened
push:
permissions:
contents: write
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install action-docs
run: npm install -g action-docs
- name: Update docker-build-push inputs in README.md
run: action-docs --no-banner -t 3 -s ./.github/workflows/docker-build-push.yml --update-readme
- name: Update ecs-deploy inputs in README.md
run: action-docs --no-banner -t 3 -s ./.github/workflows/ecs-deploy.yml --update-readme
- name: Update run-commands inputs in README.md
run: action-docs --no-banner -t 3 -s ./.github/workflows/run-commands.yml --update-readme
- name: Check if README.md was updated
run: if [[ $(git diff README.md) ]]; then exit 0; else exit 1; fi
continue-on-error: true
- uses: stefanzweifel/git-auto-commit-action@v5
if: success()
with:
commit_message: 'Update README.md'
file_pattern: '*.md'