use latest release, use main in tests
This commit is contained in:
parent
a76e56d287
commit
20b7695b53
6
.github/workflows/use-action.yaml
vendored
6
.github/workflows/use-action.yaml
vendored
@ -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)
|
||||||
|
@ -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 }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user