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

bug: 🐝 fail if there is github-pages-deploy-action branch due to conflict temporaryDeploymentBranch #1712

Open
xuwei-k opened this issue Oct 4, 2024 · 0 comments
Assignees
Labels
bug 🐝 This issue describes a bug. triage ⚠️

Comments

@xuwei-k
Copy link

xuwei-k commented Oct 4, 2024

Describe the bug

This action create temporary branch github-pages-deploy-action/{random string}. but this cause conflict error.

const temporaryDeploymentBranch = `github-pages-deploy-action/${Math.random()
.toString(36)
.substr(2, 9)}`

Reproduction Steps

create github-pages-deploy-action branch and run this action

Logs

/usr/bin/git add --all .
/usr/bin/git checkout -b github-pages-deploy-action/sh2ajsxux
fatal: cannot lock ref 'refs/heads/github-pages-deploy-action/sh2ajsxux': 'refs/heads/github-pages-deploy-action' exists; cannot create 'refs/heads/github-pages-deploy-action/sh2ajsxux'
Running post deployment cleanup jobs… 🗑️

Workflow

https://github.com/scala-text/scala_text/actions/runs/11172103654/job/31058018457#step:22:74

Additional Comments

I will suggest avoid / char.

- `github-pages-deploy-action/{ramdom string}`
+ `github-pages-deploy-action-{ramdom string}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐝 This issue describes a bug. triage ⚠️
Projects
None yet
Development

No branches or pull requests

2 participants