chore(deps): update all minor dependencies #726
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: "Check if documentation has been updated" | |
on: | |
pull_request: | |
paths: | |
- "**/*.tf" | |
- "**/*.md" | |
- ".github/workflows/*.yml" | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: install tf_docs | |
env: | |
TERRAFORM_DOCS_VERSION: 0.15.0 | |
run: | | |
mkdir -p bin | |
curl -Lo terraform-docs.tar.gz "https://github.com/terraform-docs/terraform-docs/releases/download/v$TERRAFORM_DOCS_VERSION/terraform-docs-v$TERRAFORM_DOCS_VERSION-linux-amd64.tar.gz" \ | |
&& tar -xzf terraform-docs.tar.gz terraform-docs\ | |
&& chmod +x terraform-docs \ | |
&& mv terraform-docs bin/ \ | |
&& rm terraform-docs.tar.gz | |
echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH | |
- name: Check if docs have been updated | |
run: | | |
make docs | |
rm -rf bin/terraform-docs | |
# Check if there are any files to commit | |
if [[ $(git status --porcelain) ]]; then | |
# If there are, display the list of files and exit with a non-zero status code | |
echo "💩 The following files need to be committed:" | |
git status --porcelain | |
git status --porcelain | sed -e 's/^M/**Modified**/' -e 's/^A/**Added**/' -e 's/^D/**Deleted**/' >> $GITHUB_STEP_SUMMARY | |
echo "Changes found" | |
git diff | |
exit 1 | |
fi |