From 20b7695b536c640edfafdd378d96c760460f29d6 Mon Sep 17 00:00:00 2001 From: Jason Hall Date: Wed, 28 Apr 2021 23:00:23 -0400 Subject: [PATCH] use latest release, use main in tests --- .github/workflows/use-action.yaml | 6 +++--- action.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/use-action.yaml b/.github/workflows/use-action.yaml index e46fb00..e15d610 100644 --- a/.github/workflows/use-action.yaml +++ b/.github/workflows/use-action.yaml @@ -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) diff --git a/action.yml b/action.yml index d05aaa1..69aaef8 100644 --- a/action.yml +++ b/action.yml @@ -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 }}"