helaili / jekyll-action

A GitHub Action to publish Jekyll based content as a GitHub Pages site
MIT License
250 stars 120 forks source link

"Not in a git directory" error #121

Closed arthrfrts closed 2 years ago

arthrfrts commented 2 years ago

Hey, thanks for your work in this action.

Since yesterday I've been unable to deploy the latest changes in my Jekyll site. It builds everything and the job finishes without errors, but the site doesn't update.

Checking the logs, I'm seeing this:

Jekyll build done
Publishing to [user]/[repo] on branch gh-pages
fatal: not in a git directory
helaili commented 2 years ago

I'll have a look. In the mean time, you can revert to 2.1.0 instead of v2.

helaili commented 2 years ago

Can you give it a try with the head commit (742d0ede705b0c819d4a13d0f43d3cce07cfe832 ) of https://github.com/helaili/jekyll-action/pull/123 instead of using 2.1.0 ? If it unfortunately still fails, please run again with a repository secret ACTIONS_STEP_DEBUG set to true and point me at the logs.

arthrfrts commented 2 years ago

It still fails at the same error message. Here are the debug logs.

helaili commented 2 years ago

v2 tag has been moved to the latest release which includes this fix.

arthrfrts commented 2 years ago

Fixed, thanks!