1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: fix hooks env usage

closes #2762

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos A Becker 2021-12-15 16:03:58 -03:00
parent 78cca698f7
commit c540c6cbf5
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -41,7 +41,7 @@ GoReleaser allows this with the global hooks feature.
dir: ./submodule # specify command working directory
- cmd: touch {{ .Env.FILE_TO_TOUCH }}
env:
FILE_TO_TOUCH: 'something-{{ .ProjectName }}' # specify hook level environment variables
- 'FILE_TO_TOUCH=something-{{ .ProjectName }}' # specify hook level environment variables
# global after hooks
after:
@ -52,7 +52,7 @@ GoReleaser allows this with the global hooks feature.
dir: ./submodule
- cmd: touch {{ .Env.RELEASE_DONE }}
env:
RELEASE_DONE: 'something-{{ .ProjectName }}' # specify hook level environment variables
- 'RELEASE_DONE=something-{{ .ProjectName }}' # specify hook level environment variables
```