bug: 🐝 fail if there is github-pages-deploy-action
branch due to conflict temporaryDeploymentBranch
#1712
Open
Description
Describe the bug
This action create temporary branch github-pages-deploy-action/{random string}
. but this cause conflict error.
github-pages-deploy-action/src/git.ts
Lines 110 to 112 in 1adc62d
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}`