Skip to content

Commit

Permalink
use latest release, use main in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Apr 29, 2021
1 parent a76e56d commit 20b7695
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/use-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ jobs:
- uses: actions/checkout@v2

# Minimal publish
- uses: imjasonh/setup-ko@v0.2
- uses: imjasonh/setup-ko@main
- run: ko publish --bare ./

# Install an old release.
- uses: imjasonh/setup-ko@v0.2
- uses: imjasonh/setup-ko@main
with:
version: v0.8.0
- name: Check installed version
run: ko version | grep 0.8.0

# Install from tip
- uses: imjasonh/setup-ko@v0.2
- uses: imjasonh/setup-ko@main
with:
version: tip
- name: Check installed version (tip)
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ runs:
go get github.com/google/ko@main
;;
latest-release)
tag=$(curl -s https://api.github.com/repos/google/ko/releases | jq -r '.[].tag_name' | head -n 1)
tag=$(curl -s https://api.github.com/repos/google/ko/releases/latest | jq -r '.tag_name')
;;
*)
tag="${{ inputs.version }}"
Expand Down

0 comments on commit 20b7695

Please sign in to comment.