Skip to content
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

False reporting of Working tree clean. Nothing to commit. #616

Closed
theofficialgman opened this issue Jan 27, 2024 · 3 comments
Closed

False reporting of Working tree clean. Nothing to commit. #616

theofficialgman opened this issue Jan 27, 2024 · 3 comments
Labels
status: pending More info is needed before deciding what to do status: stale Inactive issues and PRs

Comments

@theofficialgman
Copy link

theofficialgman commented Jan 27, 2024

workflow: https://github.com/Botspot/pi-apps/actions/runs/7676529394/workflow

working tree is checked for any changes with git diff HEAD --name-only and the output is

apps/Oh My Posh/install
apps/Pycharm CE/install-64

https://github.com/Botspot/pi-apps/actions/runs/7676529394/job/20924363545#step:5:41
these are files that already exist in the git repo but have been modified.

however running EndBug/add-and-commit@v9 results in a false report that the working tree is clean.

Internal logs
  > Staging files...
  > Adding files...
  > No files to remove.
  > Checking for uncommitted changes in the git working tree...
> Working tree clean. Nothing to commit.
Outputs
  committed: false
  commit_long_sha: undefined
  commit_sha: undefined
  pushed: false
  tagged: false
  tag_pushed: false

https://github.com/Botspot/pi-apps/actions/runs/7676529394/job/20924363545#step:7:36

@theofficialgman theofficialgman added the status: pending More info is needed before deciding what to do label Jan 27, 2024
@theofficialgman
Copy link
Author

removing the with

          fetch: false
          add: '--refresh'

works around this issue (not ideal since I do not want to add any potential new files to the repo). however now the same issue as mentioned here occurs -> stefanzweifel/git-auto-commit-action#317

@EndBug
Copy link
Owner

EndBug commented Feb 2, 2024

Hey, thanks for opening this issue!
Does this also happen if you use add: '-A'?

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the status: stale Inactive issues and PRs label Feb 22, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pending More info is needed before deciding what to do status: stale Inactive issues and PRs
Projects
None yet
Development

No branches or pull requests

2 participants