use latest release, use main in tests

This commit is contained in:
Jason Hall 2021-04-28 23:00:23 -04:00
parent a76e56d287
commit 20b7695b53
2 changed files with 4 additions and 4 deletions

View File

@ -19,18 +19,18 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
# Minimal publish # Minimal publish
- uses: imjasonh/setup-ko@v0.2 - uses: imjasonh/setup-ko@main
- run: ko publish --bare ./ - run: ko publish --bare ./
# Install an old release. # Install an old release.
- uses: imjasonh/setup-ko@v0.2 - uses: imjasonh/setup-ko@main
with: with:
version: v0.8.0 version: v0.8.0
- name: Check installed version - name: Check installed version
run: ko version | grep 0.8.0 run: ko version | grep 0.8.0
# Install from tip # Install from tip
- uses: imjasonh/setup-ko@v0.2 - uses: imjasonh/setup-ko@main
with: with:
version: tip version: tip
- name: Check installed version (tip) - name: Check installed version (tip)

View File

@ -23,7 +23,7 @@ runs:
go get github.com/google/ko@main go get github.com/google/ko@main
;; ;;
latest-release) 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 }}" tag="${{ inputs.version }}"