This commit is contained in:
mkelcik
2023-12-09 16:20:31 +01:00
parent bad00230a9
commit 26a3cf2a18
2 changed files with 4 additions and 4 deletions

View File

@@ -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 ./...

View File

@@ -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 {