You've already forked goreleaser
							
							
				mirror of
				https://github.com/goreleaser/goreleaser.git
				synced 2025-10-30 23:58:09 +02:00 
			
		
		
		
	fix: docs script
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
		| @@ -1,13 +1,13 @@ | ||||
| #!/bin/bash | ||||
| set -xeuo pipefail | ||||
| set -euo pipefail | ||||
|  | ||||
| url="https://api.github.com/repos/goreleaser/goreleaser/releases" | ||||
|  | ||||
| get_last_page() { | ||||
| 	curl -sSf -I -H "Authorization: Bearer $GITHUB_TOKEN" \ | ||||
| 		"$url" | | ||||
| 		grep -E '^Link: ' | | ||||
| 		sed -e 's/^Link:.*page=//g' -e 's/>.*$//g' | ||||
| 		grep -E '^link: ' | | ||||
| 		sed -e 's/^link:.*page=//g' -e 's/>.*$//g' | ||||
| } | ||||
|  | ||||
| last_page="$(get_last_page)" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user