feat: uses autoscaler module instead of repeating code #201
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Terraform Docs 📜 | |
on: | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Exit with error if terraform-docs has changed the README.md | |
run: | | |
make docs | |
git diff --exit-code README.md | |
if [ $? -eq 0 ]; then | |
echo "README.md is up to date" | |
else | |
echo "README.md is out of date. Please run 'make docs' and commit the changes." | |
exit 1 | |
fi |