Skip to content

Commit

Permalink
docs: fix hooks env usage
Browse files Browse the repository at this point in the history
closes #2762

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Dec 15, 2021
1 parent 78cca69 commit c540c6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/docs/customization/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
```


Expand Down

0 comments on commit c540c6c

Please sign in to comment.