You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	fix(build): set workdir as safe for git when running docker image (#3229)
prevents git from panic when running goreleaser as docker in CI env Signed-off-by: Artur Troian <troian.ap@gmail.com>
This commit is contained in:
		| @@ -20,5 +20,8 @@ if [ -n "$GITHUB_TOKEN" ]; then | ||||
| 	echo "$GITHUB_TOKEN" | docker login ghcr.io -u docker --password-stdin | ||||
| fi | ||||
|  | ||||
| # prevents git from complaining about unsafe dir. especially when using github actions | ||||
| git config --global --add safe.directory . | ||||
|  | ||||
| # shellcheck disable=SC2068 | ||||
| exec goreleaser $@ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user