Action pulling source repo instead of deployment repo (was working a few weeks ago) #1782
Unanswered
thomasantony
asked this question in
Q&A
Replies: 1 comment 1 reply
-
The LFS error is what's ultimately causing this to fail, the commit hash bit you're seeing shouldn't matter, it's just trying to create a detatched version it can push to your destination repo.
This is the first time I've seen this error however. Are you sure nothing is committing LFS resources in a prior step? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a repository with my website source (with static site generator), which generates the HTML into the
public
folder and then deploys it to github pages. It was working just fine until I tried yesterday.It seems like it is trying to deploy the source repository rather than the deployment one specified in
repository_name
.Note how it says
Preparing worktree (detached HEAD bf88686)
. That commit hash is fromthomasantony/thomasantony.github.io-src
and notthomasantony/thomasantony.github.io
(the deployment target).I also tried doing a
rm -rf .git
in a step before the deployment and that didn't seem to do anything.What am I doing wrong here?
This is how I am using the action:
It also throws some Git LFS errors as it tries to push Git LFS artifacts that are defined in the source repo to the deployment repo (which doesn't have any LFS artifacts).
I found a discussion talking about something like this being fixed in v4.6.1, but I am using a newer version and it is still failing.
I also tried rolling back to the old
deploy.yml
(from August) and it is giving the same error.See: https://github.com/thomasantony/thomasantony.github.io-src/actions/runs/12614500909/job/35153460536#step:8:88
Beta Was this translation helpful? Give feedback.
All reactions