new/version-input #3

Merged
jake merged 11 commits from new/version-input into main 2026-05-27 18:55:06 +00:00
2 changed files with 10 additions and 7 deletions
Showing only changes of commit b25fd78dd5 - Show all commits

View File

@@ -1,9 +1,9 @@
name: "test"
run-name: "test"
name: "tests"
run-name: "tests"
on: push
jobs:
test:
test-gomod:
runs-on: wind
steps:
- uses: actions/checkout@v4
@@ -30,15 +30,18 @@ jobs:
shell: bash
run: mctl -v | grep "mctl version v0.3.4"
- name: "remove go"
test-versioninput:
runs-on: wind
steps:
- uses: actions/checkout@v4
- name: "install go with version input"
shell: bash
env:
GO_INSTALL_COMMANDS: code.jakeyoungdev.com/jake/mctl@v0.3.4
GO_INSTALL_PURGE: yes
GO_INSTALL_VERSION: 1.23.2
GO_INSTALL_ARCH: amd64
run: |
rm go.mod
chmod +x install.sh
./install.sh
- name: "check go version"

View File

@@ -44,7 +44,7 @@ if [[ -z $GO_INSTALL_VERSION ]]; then
fixVersion
fi
else
DL_VERSION_RAW="$GO_INSTALL_VERSION"
DL_VERSION_RAW=$GO_INSTALL_VERSION
fi