39 lines
892 B
YAML
39 lines
892 B
YAML
name: Validate release configuration
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- ".goreleaser.yml"
|
|
- "Dockerfile.github-actions"
|
|
- "go.mod"
|
|
- "go.sum"
|
|
- ".github/workflows/ci.yaml"
|
|
- ".github/workflows/release-check.yaml"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
snapshot:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.26.x"
|
|
|
|
- uses: docker/setup-qemu-action@v3
|
|
- uses: docker/setup-buildx-action@v3
|
|
|
|
- run: echo "SOURCE=$(make echo-source)" >> "$GITHUB_ENV"
|
|
- run: echo "DATABASE=$(make echo-database)" >> "$GITHUB_ENV"
|
|
|
|
- uses: goreleaser/goreleaser-action@v5
|
|
with:
|
|
version: v1.26.2
|
|
args: release --snapshot --skip-publish --clean
|