You've already forked ddns-updater
upgrade
This commit is contained in:
6
.github/workflows/quality-checks.yml
vendored
6
.github/workflows/quality-checks.yml
vendored
@@ -22,7 +22,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/setup-go@v4
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.21'
|
||||||
cache: false
|
cache: false
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
@@ -39,7 +39,7 @@ jobs:
|
|||||||
- name: Prepare go environment
|
- name: Prepare go environment
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.21'
|
||||||
cache: false
|
cache: false
|
||||||
- name: Install dep scanner
|
- name: Install dep scanner
|
||||||
run: |
|
run: |
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
- name: Prepare go environment
|
- name: Prepare go environment
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '1.20'
|
go-version: '1.21'
|
||||||
cache: false
|
cache: false
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test --cover -coverprofile coverage.out -covermode count -v ./...
|
run: go test --cover -coverprofile coverage.out -covermode count -v ./...
|
||||||
|
|||||||
2
main.go
2
main.go
@@ -89,7 +89,7 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if config.OnChangeComment != "" {
|
if config.OnChangeComment != "" {
|
||||||
update.Comment = config.OnChangeComment
|
update.Comment = &config.OnChangeComment
|
||||||
}
|
}
|
||||||
|
|
||||||
if _, err := api.UpdateDNSRecord(ctx, cloudflare.ZoneIdentifier(zoneID), update); err != nil {
|
if _, err := api.UpdateDNSRecord(ctx, cloudflare.ZoneIdentifier(zoneID), update); err != nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user