peterjgrainger / action-create-branch

Github action to create a branch
MIT License
90 stars 29 forks source link

Error: Reference already exists #389

Closed akaszynski closed 1 year ago

akaszynski commented 1 year ago

Hello,

We've run into this issue a few times:

Run peterjgrainger/action-create-branch@v2.4.0
  with:
    branch: demo/doc-project
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.16/x64
    PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib/pkgconfig
    Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.16/x64
    Python[2](https://github.com/<redacted>/runs/4940227215/jobs/8831672097#step:7:2)_ROOT_DIR: /opt/hostedtoolcache/Python/[3](https://github.com/<redacted>/actions/runs/4940227215/jobs/8831672097#step:7:3).8.16/x6[4](https://github.com/<redacted>/actions/runs/4940227215/jobs/8831672097#step:7:4)
    Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.1[6](https://github.com/<redacted>/actions/runs/4940227215/jobs/8831672097#step:7:6)/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.[8](https://github.com/<redacted>/actions/runs/4940227215/jobs/8831672097#step:7:8).16/x64/lib
    GITHUB_TOKEN: ***
Error: Reference already exists

This appears similar to this issue: https://github.com/mathieudutour/github-tag-action/issues/126

peterjgrainger commented 1 year ago

Hi @akaszynski. If you have slashes in the name you need to use the fully qualified name as per the docs https://github.com/peterjgrainger/action-create-branch#branch