1
0
Fork 0
mirror of https://github.com/imjasonh/setup-crane synced 2026-07-06 22:52:45 +00:00

authorize request to get releases

This commit is contained in:
Jason Hall 2021-07-23 11:23:45 -04:00
parent 55478cc113
commit 46e1849f94

View file

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