name: Go Checks

on:
  pull_request:
  push:
    branches: ["master","release-v0[0-9][0-9]"]
  workflow_dispatch:

permissions:
  contents: read

concurrency:
  group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event_name == 'push' && github.sha || github.ref }}
  cancel-in-progress: true

jobs:
  go-check:
    uses: ipdxco/unified-github-workflows/.github/workflows/go-check.yml@v1.0
    with:
      go-generate-ignore-protoc-version-comments: true
