Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mscno authored Mar 29, 2024
1 parent cb0138f commit 3ac2371
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ runs:
# - if version is "tip", install from tip of main.
# - if version is "latest-release", look up latest release.
# - otherwise, install the specified version.
case ${{ inputs.version }} in
tip)
echo "Installing goose using go install"
go install github.com/pressly/goose/v3/cmd/goose@latest
;;
latest-release)
tag=$(curl -L -s -u "username:${{ github.token }}" https://api.github.com/pressly/goose/releases/latest | jq -r '.tag_name')
tag=$(curl -L -s -u "username:${{ github.token }}" https://api.github.com/repos/pressly/goose/releases/latest | jq -r '.tag_name')
;;
*)
tag="${{ inputs.version }}"
Expand Down

0 comments on commit 3ac2371

Please sign in to comment.