action-rollback icon indicating copy to clipboard operation
action-rollback copied to clipboard

Error: Reference does not exist

Open commandlinegirl opened this issue 4 years ago • 3 comments

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:

image

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.

commandlinegirl avatar Feb 18 '21 00:02 commandlinegirl

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

coreybutler avatar Feb 20 '21 20:02 coreybutler

Thanks!

commandlinegirl avatar Feb 24 '21 02:02 commandlinegirl

Using the master version raises the error mentioned in #8.

garysb avatar May 20 '22 12:05 garysb