ci: get golang version from modfile (#31)

Reviewed-on: #31
Co-authored-by: t.behrendt <t.behrendt@t00n.de>
Co-committed-by: t.behrendt <t.behrendt@t00n.de>
This commit was merged in pull request #31.
This commit is contained in:
2026-07-08 06:50:36 +02:00
committed by t.behrendt
parent 12f26f1d8f
commit 8b3a32af11
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ jobs:
- name: Setup Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
with:
go-version: "1.26.3"
go-version-file: 'go.mod'
- name: Install yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
@@ -29,7 +29,7 @@ jobs:
id: version_check
run: |
NEW_VERSION=$(yq -r '.info.version' openapi.yaml)
if [ -f openapi_spec.yaml ]; then
if [ -f openapi_spec.yaml ]; then
OLD_VERSION=$(yq -r '.info.version' openapi_spec.yaml)
else
OLD_VERSION="0.0.0"