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 }}"