Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Reference does not exist #10

Open
commandlinegirl opened this issue Feb 18, 2021 · 3 comments
Open

Error: Reference does not exist #10

commandlinegirl opened this issue Feb 18, 2021 · 3 comments

Comments

@commandlinegirl
Copy link

commandlinegirl commented Feb 18, 2021

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.

@coreybutler
Copy link
Member

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

@commandlinegirl
Copy link
Author

Thanks!

@garysb
Copy link

garysb commented May 20, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants