Closed aLosada7 closed 1 year ago
You workflow checks out the repository in a "detached HEAD" state. This means that Actions doesn't checkout a branch but rather a single commit.
https://github.com/aLosada7/edene/actions/runs/3778321913/jobs/6422695658#step:2:426
This leads to a problem when git-auto-commit
tries to internally switch to the main
-branch.
You can fix this by passing the branch name to be checked out to actions/checkout
-Action (more).
- name: Checkout Code
uses: actions/checkout@v2
+ with:
+ ref: main
git-auto-commit Version
v4.16.0
Machine Type
Ubuntu (eg. ubuntu-latest)
Bug description
I am getting the following error:
Some help will be appreciated.
Steps to reproduce
You can find the logs here: https://github.com/aLosada7/edene/actions/runs/3778321913/jobs/6422695658
Tried solutions
No response
Example Workflow
Relevant log output
No response