authorize API call to list releases, to avoid rate limits

This commit is contained in:
Jason Hall 2021-07-23 11:36:22 -04:00
parent 2c3450ca27
commit 789c5efa40

View File

@ -25,7 +25,7 @@ runs:
go get github.com/google/ko@main
;;
latest-release)
tag=$(curl -s https://api.github.com/repos/google/ko/releases/latest | jq -r '.tag_name')
tag=$(curl -s -u "username:${{ github.token }}" https://api.github.com/repos/google/ko/releases/latest | jq -r '.tag_name')
;;
*)
tag="${{ inputs.version }}"