-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Uncommitted change(s) has been found! #124
Comments
I've also attempted to manually install terraform docs: jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Check README.md is up to date
run: |
curl -Lo ./terraform-docs.tar.gz https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-linux-amd64.tar.gz
tar -xzf terraform-docs.tar.gz
chmod +x terraform-docs
./terraform-docs . --output-check output Run curl -Lo ./terraform-docs.tar.gz https://github.com/terraform-docs/terraform-docs/releases/download/v0.17.0/terraform-docs-v0.17.0-linux-amd64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 6014k 100 6014k 0 0 19.7M 0 --:--:-- --:--:-- --:--:-- 19.7M
Error: README.md is out of date
Error: Process completed with exit code 1. But when I run it locally » terraform-docs . --output-check
README.md is up to date I'm not sure what the remote is picking up that's causing a difference... |
I saved the results the remote is giving me and then did a diff with my local copy:
🤔 why |
AHA! if I run So locally I had initialised, but remotely its just running terraform-docs as is. |
Was running into the same issue. Ran Because I hadn't committed Running Thanks @arivictor for the fix 🫡 |
Describe the bug
I am trying to do a
fail-on-diff
check for a terraform module doc on a pull request. The GHA fails withThere is no change between my current README.md and the generated one (well, there shouldn't be in theory).
How can we reproduce it?
workflow
config
Environment information
The text was updated successfully, but these errors were encountered: