goreleaser / goreleaser-action

GitHub Action for GoReleaser
https://github.com/marketplace/actions/goreleaser-action
MIT License
856 stars 75 forks source link

Env variables not available in post-build hooks #402

Closed wbrefvem closed 1 year ago

wbrefvem commented 1 year ago

Locally, I can specify the following hook:

build:
  hooks:
    post: 
      - chown <uid>:<gid> {{ .Path }}

As expected, GoReleaser runs the following:

chown <uid>:<gid> /path/to/my/binary

However, in the GitHub action, using the same GoReleaser version (1.16.0), the .Path variable does not come through, and GoReleaser runs:

chown <uid>:<gid>

And so the command fails.

caarlos0 commented 1 year ago

Please share a reproducible of the issue. Running through actions should be no different than locally for that particular option.

caarlos0 commented 1 year ago

closing due to lack of activity