050a3ed674
Bumps the all group with 1 update: [actions/checkout](https://github.com/actions/checkout).
Updates `actions/checkout` from 4.1.5 to 4.1.6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](44c2b7a8a4...a5ac7e51b4
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: all
...
Signed-off-by: dependabot[bot] <support@github.com>
63 lines
1.4 KiB
YAML
63 lines
1.4 KiB
YAML
name: Use Action
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
use-action:
|
|
name: Use Action
|
|
|
|
strategy:
|
|
matrix:
|
|
platform:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
steps:
|
|
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
|
|
with:
|
|
go-version: '1.22'
|
|
check-latest: 'true'
|
|
|
|
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
|
|
|
|
# Minimal publish
|
|
- uses: ko-build/setup-ko@main
|
|
|
|
- run: ko publish --bare ./
|
|
|
|
- name: Install old release
|
|
uses: ko-build/setup-ko@main
|
|
with:
|
|
version: v0.8.0
|
|
|
|
- name: Check installed version
|
|
run: ko version | grep 0.8.0
|
|
|
|
- name: Install from tip
|
|
uses: ko-build/setup-ko@main
|
|
with:
|
|
version: tip
|
|
|
|
- name: Check installed version (tip)
|
|
run: |
|
|
sudo rm /usr/local/bin/ko # Uninstall previous versions.
|
|
ko version
|
|
|
|
# If KO_DOCKER_REPO is set during setup, it's set for future steps.
|
|
- name: Pre-set KO_DOCKER_REPO
|
|
uses: ko-build/setup-ko@main
|
|
env:
|
|
KO_DOCKER_REPO: already-set
|
|
|
|
- name: Check pre-set KO_DOCKER_REPO
|
|
run: |
|
|
if [[ "${KO_DOCKER_REPO}" != "already-set" ]]; then
|
|
echo "${KO_DOCKER_REPO} != already-set"
|
|
exit 1
|
|
fi
|