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:
@@ -16,7 +16,7 @@ jobs:
|
|||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
|
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6
|
||||||
with:
|
with:
|
||||||
go-version: "1.26.3"
|
go-version-file: 'go.mod'
|
||||||
- name: Install yq
|
- name: Install yq
|
||||||
run: |
|
run: |
|
||||||
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
|
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
|
id: version_check
|
||||||
run: |
|
run: |
|
||||||
NEW_VERSION=$(yq -r '.info.version' openapi.yaml)
|
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)
|
OLD_VERSION=$(yq -r '.info.version' openapi_spec.yaml)
|
||||||
else
|
else
|
||||||
OLD_VERSION="0.0.0"
|
OLD_VERSION="0.0.0"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
module gitea.t000-n.de/t.behrendt/ionosDnsClient
|
module gitea.t000-n.de/t.behrendt/ionosDnsClient
|
||||||
|
|
||||||
go 1.24.0
|
go 1.26.3
|
||||||
|
|
||||||
require github.com/oapi-codegen/runtime v1.4.2
|
require github.com/oapi-codegen/runtime v1.4.2
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
"extends": [
|
"extends": [
|
||||||
"local>t.behrendt/renovate-configs:common",
|
"local>t.behrendt/renovate-configs:action",
|
||||||
"local>t.behrendt/renovate-configs:action"
|
"local>t.behrendt/renovate-configs:golang"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user