Error: Reference does not exist
Hello, I'm using
https://github.com/author/action-rollback/tree/1.0.3#workflow
- name: Rollback release if unsuccessful
if: ${{ cancelled() || failure() }}
uses: author/action-rollback@stable
with:
release_id: ${{ steps.create-release.outputs.id }}
delete_orphan_tag: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
and I'm getting the error:

If I delete always_delete_tag I still get the error Error: Reference does not exist but not the warning. I'm more concered with this error. Where can it be coming from? The release entry is indeed removed so the release_id works well.
The error means the Github reference does not exist. It throws this error when the release does not have a reference commit on Github (i.e. this error is triggered by the Github API).
The delete orphan tag feature was pulled out of stable... not because anything is wrong with it, but because other changes needed to be pulled out. You can try the master branch if you need that feature. I need to update the docs to explain this.
To use the master branch instead of stable:
- name: Rollback release if unsuccessful
if: ${{ cancelled() || failure() }}
uses: author/action-rollback@master
with:
release_id: ${{ steps.create-release.outputs.id }}
delete_orphan_tag: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Thanks!
Using the master version raises the error mentioned in #8.