github/branch-deploy

Bug: Reference does not exist

GrantBirki opened this issue · 3 comments

When running the .unlock command when there is no lock, an error is returned.

##[debug]comment body does not start with trigger: .deploy
##[debug]comment body does not start with trigger: .noop
##[debug]comment body does not start with trigger: .lock
✅ comment body starts with trigger: .unlock
##[debug]comment body does not start with trigger: .help
##[debug]comment body does not start with trigger: .wcid
##[debug]using default environment for unlock request
Error: Error: HttpError: Reference does not exist - https://docs.github.com/rest/git/refs#delete-a-reference
    at unlock (/home/runner/work/_actions/github/branch-deploy/v9.1.0/src/functions/unlock.js:185:1)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at run (/home/runner/work/_actions/github/branch-deploy/v9.1.0/src/main.js:410:1)
Error: HttpError: Reference does not exist - https://docs.github.com/rest/git/refs#delete-a-reference

Image

This bug exists in tag v9.1.0 but not v9.0.0

It looks like that is indeed where the problem lives. The error message now include a link to the docs (which is awesome), but it breaks some of the checks this project does on error messages.