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

View File

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