Files
ionosDnsClient/.gitea/workflows/weekly.yaml
Renovate Bot caab7d75fe chore(deps): update dependency go to v1.25.5 (#4)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [go](https://github.com/actions/go-versions) | uses-with | minor | `1.23.5` -> `1.25.5` |

---

### Release Notes

<details>
<summary>actions/go-versions (go)</summary>

### [`v1.25.5`](https://github.com/actions/go-versions/releases/tag/1.25.5-19880500865): 1.25.5

[Compare Source](https://github.com/actions/go-versions/compare/1.25.4-19122936812...1.25.5-19880500865)

Go 1.25.5

### [`v1.25.4`](https://github.com/actions/go-versions/releases/tag/1.25.4-19122936812): 1.25.4

[Compare Source](https://github.com/actions/go-versions/compare/1.25.3-18483679098...1.25.4-19122936812)

Go 1.25.4

### [`v1.25.3`](https://github.com/actions/go-versions/releases/tag/1.25.3-18483679098): 1.25.3

[Compare Source](https://github.com/actions/go-versions/compare/1.25.2-18331015608...1.25.3-18483679098)

Go 1.25.3

### [`v1.25.2`](https://github.com/actions/go-versions/releases/tag/1.25.2-18331015608): 1.25.2

[Compare Source](https://github.com/actions/go-versions/compare/1.25.1-17451174567...1.25.2-18331015608)

Go 1.25.2

### [`v1.25.1`](https://github.com/actions/go-versions/releases/tag/1.25.1-17451174567): 1.25.1

[Compare Source](https://github.com/actions/go-versions/compare/1.25.0-16925932082...1.25.1-17451174567)

Go 1.25.1

### [`v1.25.0`](https://github.com/actions/go-versions/releases/tag/1.25.0-16925932082): 1.25.0

[Compare Source](https://github.com/actions/go-versions/compare/1.24.11-19880504225...1.25.0-16925932082)

Go 1.25.0

### [`v1.24.11`](https://github.com/actions/go-versions/releases/tag/1.24.11-19880504225): 1.24.11

[Compare Source](https://github.com/actions/go-versions/compare/1.24.10-19122940106...1.24.11-19880504225)

Go 1.24.11

### [`v1.24.10`](https://github.com/actions/go-versions/releases/tag/1.24.10-19122940106): 1.24.10

[Compare Source](https://github.com/actions/go-versions/compare/1.24.9-18483682169...1.24.10-19122940106)

Go 1.24.10

### [`v1.24.9`](https://github.com/actions/go-versions/releases/tag/1.24.9-18483682169): 1.24.9

[Compare Source](https://github.com/actions/go-versions/compare/1.24.8-18331018734...1.24.9-18483682169)

Go 1.24.9

### [`v1.24.8`](https://github.com/actions/go-versions/releases/tag/1.24.8-18331018734): 1.24.8

[Compare Source](https://github.com/actions/go-versions/compare/1.24.7-17451178159...1.24.8-18331018734)

Go 1.24.8

### [`v1.24.7`](https://github.com/actions/go-versions/releases/tag/1.24.7-17451178159): 1.24.7

[Compare Source](https://github.com/actions/go-versions/compare/1.24.6-16792114823...1.24.7-17451178159)

Go 1.24.7

### [`v1.24.6`](https://github.com/actions/go-versions/releases/tag/1.24.6-16792114823): 1.24.6

[Compare Source](https://github.com/actions/go-versions/compare/1.24.5-16210585985...1.24.6-16792114823)

Go 1.24.6

### [`v1.24.5`](https://github.com/actions/go-versions/releases/tag/1.24.5-16210585985): 1.24.5

[Compare Source](https://github.com/actions/go-versions/compare/1.24.4-15482447176...1.24.5-16210585985)

Go 1.24.5

### [`v1.24.4`](https://github.com/actions/go-versions/releases/tag/1.24.4-15482447176): 1.24.4

[Compare Source](https://github.com/actions/go-versions/compare/1.24.3-14875263452...1.24.4-15482447176)

Go 1.24.4

### [`v1.24.3`](https://github.com/actions/go-versions/releases/tag/1.24.3-14875263452): 1.24.3

[Compare Source](https://github.com/actions/go-versions/compare/1.24.2-14210955142...1.24.3-14875263452)

Go 1.24.3

### [`v1.24.2`](https://github.com/actions/go-versions/releases/tag/1.24.2-14210955142): 1.24.2

[Compare Source](https://github.com/actions/go-versions/compare/1.24.1-13667719799...1.24.2-14210955142)

Go 1.24.2

### [`v1.24.1`](https://github.com/actions/go-versions/releases/tag/1.24.1-13667719799): 1.24.1

[Compare Source](https://github.com/actions/go-versions/compare/1.24.0-13277276272...1.24.1-13667719799)

Go 1.24.1

### [`v1.24.0`](https://github.com/actions/go-versions/releases/tag/1.24.0-13277276272): 1.24.0

[Compare Source](https://github.com/actions/go-versions/compare/1.23.12-16792118003...1.24.0-13277276272)

Go 1.24.0

### [`v1.23.12`](https://github.com/actions/go-versions/releases/tag/1.23.12-16792118003): 1.23.12

[Compare Source](https://github.com/actions/go-versions/compare/1.23.11-16210591255...1.23.12-16792118003)

Go 1.23.12

### [`v1.23.11`](https://github.com/actions/go-versions/releases/tag/1.23.11-16210591255): 1.23.11

[Compare Source](https://github.com/actions/go-versions/compare/1.23.10-15482449421...1.23.11-16210591255)

Go 1.23.11

### [`v1.23.10`](https://github.com/actions/go-versions/releases/tag/1.23.10-15482449421): 1.23.10

[Compare Source](https://github.com/actions/go-versions/compare/1.23.9-14875265214...1.23.10-15482449421)

Go 1.23.10

### [`v1.23.9`](https://github.com/actions/go-versions/releases/tag/1.23.9-14875265214): 1.23.9

[Compare Source](https://github.com/actions/go-versions/compare/1.23.8-14210956405...1.23.9-14875265214)

Go 1.23.9

### [`v1.23.8`](https://github.com/actions/go-versions/releases/tag/1.23.8-14210956405): 1.23.8

[Compare Source](https://github.com/actions/go-versions/compare/1.23.7-13667722349...1.23.8-14210956405)

Go 1.23.8

### [`v1.23.7`](https://github.com/actions/go-versions/releases/tag/1.23.7-13667722349): 1.23.7

[Compare Source](https://github.com/actions/go-versions/compare/1.23.6-13149487101...1.23.7-13667722349)

Go 1.23.7

### [`v1.23.6`](https://github.com/actions/go-versions/releases/tag/1.23.6-13149487101): 1.23.6

[Compare Source](https://github.com/actions/go-versions/compare/1.23.5-12821973241...1.23.6-13149487101)

Go 1.23.6

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi4zNy4xIiwidXBkYXRlZEluVmVyIjoiNDIuMzkuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYWN0aW9uIiwiZGVwcyJdfQ==-->

Reviewed-on: #4
Reviewed-by: t.behrendt <t.behrendt@noreply.localhost>
Co-authored-by: Renovate Bot <renovate@t00n.de>
Co-committed-by: Renovate Bot <renovate@t00n.de>
2025-12-14 23:04:07 +01:00

68 lines
2.3 KiB
YAML

name: Update Client
on:
schedule:
- cron: "@weekly"
workflow_dispatch:
jobs:
update-client:
runs-on:
- ubuntu-latest
- linux_amd64
steps:
- name: Checkout code
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3
- name: Setup Go
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5
with:
go-version: "1.25.5"
- name: Install yq
run: |
sudo wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/bin/yq
sudo chmod +x /usr/bin/yq
- name: Install openapi codegen
run: go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.4.1
- name: Download Ionos DNS OpenAPI Spec
run: curl -sL https://developer.hosting.ionos.com/assets/kms-swagger-specs/dns.yaml -o openapi.yaml
- name: Compare OpenAPI Versions
id: version_check
run: |
NEW_VERSION=$(yq -r '.info.version' openapi.yaml)
if [ -f openapi_spec.yaml ]; then
OLD_VERSION=$(yq -r '.info.version' openapi_spec.yaml)
else
OLD_VERSION="0.0.0"
fi
echo "New Version: $NEW_VERSION"
echo "Old Version: $OLD_VERSION"
if [ "$NEW_VERSION" != "$OLD_VERSION" ]; then
echo "New version detected"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
else
echo "No new version detected"
exit 0
fi
- name: Generate OpenAPI Client
if: env.NEW_VERSION
run: |
rm -rf *.go
oapi-codegen --config cfg.yaml openapi.yaml
go mod tidy
- name: Update Local OpenAPI Spec
if: env.NEW_VERSION
run: mv openapi.yaml openapi_spec.yaml
- name: Commit and Push Changes
if: env.NEW_VERSION
run: |
git config user.name "OpenAPI Bot"
git config user.email "t.behrendt@t00n.de"
git add .
git commit -m "Update OpenAPI client to version $NEW_VERSION"
git push
- name: Create Tag
if: env.NEW_VERSION
run: |
git tag -a "v$NEW_VERSION" -m "Update OpenAPI client to version $NEW_VERSION"
git push origin "v$NEW_VERSION"