Address goreleaser deprecation warning (#1872)

## Changes

Deprecation of `name_template`:
https://goreleaser.com/deprecations#snapshotnametemplate

Observed in the "Run GoReleaser" step of
https://github.com/databricks/cli/actions/runs/11599180656/job/32296748853.

## Tests

* Run `goreleaser check`
* The snapshot build on this PR works
This commit is contained in:
Pieter Noordhuis 2024-10-31 13:09:23 +01:00 committed by GitHub
parent a56d082910
commit 79833f0071
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 1 deletions

View File

@ -6,6 +6,15 @@ on:
- "main" - "main"
- "demo-*" - "demo-*"
# Confirm that snapshot builds work if this file is modified.
pull_request:
types:
- opened
- synchronize
- reopened
paths:
- ".github/workflows/release-snapshot.yml"
workflow_dispatch: workflow_dispatch:
jobs: jobs:

View File

@ -95,7 +95,7 @@ checksum:
algorithm: sha256 algorithm: sha256
snapshot: snapshot:
name_template: '{{ incpatch .Version }}-dev+{{ .ShortCommit }}' version_template: '{{ incpatch .Version }}-dev+{{ .ShortCommit }}'
changelog: changelog:
sort: asc sort: asc