github-pages-deploy-action: Cleanup step fails to complete

In our workflow we are seeing the following error:

Running post deployment cleanup jobs… 🗑️
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
##[error]The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 1 ❌

It seems like git should be able to remove the worktree, so I’m not sure why it is failing.

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

It gets printed right before the generic git error;

@SooluThomas Can you turn disable SILENT and re-run the job? It’s also recommended that you lock the version to the latest release as it’s possible GitHub Actions is running a cached version: JamesIves/github-pages-deploy-action@3.5.9

Thanks a lot for the quick fix!