Skip to content

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

Open
@xuwei-k

Description

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}`

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions