Skip to content

Goreleaser issues when tag is pushed from a GitHub Action #1471

Closed Answered by crazy-max
brpaz asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @brpaz,

When a workflow is triggered on push event the resulting commit id is attached to it:

Referenced commit id for this workflow is a211dc7

But if you push changes, the workflow is "broken":

Work tree changed from a211dc7 to 754a555 in the Tag Release job and so Goreleaser job is not aware of this change (remember that jobs are self-contained and so not aware of other ones):

As you can see goreleaser action checks out a211dc7.

How can we solve that? Well as you may know, GoReleaser is tightly closed to Git. What you can do is merged your Tag Release job in your goreleaser job:

  goreleaser:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/chec…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@caarlos0
Comment options

Comment options

You must be logged in to vote
1 reply
@brpaz
Comment options

Answer selected by brpaz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants