ci: don't lint on release tag push (#1930)

the release tag CI is run when semantic versioned tags are pushed.
it is presumed that the commit and/or PR to the release branch being
tagged has already passed the lints.

this gets around Github Actions CI running check-proto-breaking-remote
which compares the pushed commit against _master_ (not the previous release)
This commit is contained in:
Robert Pirtle 2024-06-04 13:02:13 -07:00 committed by GitHub
parent 8d07d9cb3b
commit 21dc0e21b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,9 +4,6 @@ on:
tags: tags:
- "v[0-9]+.[0-9]+.[0-9]+*" - "v[0-9]+.[0-9]+.[0-9]+*"
jobs: jobs:
# run per commit ci checks against released version
lint-checks:
uses: ./.github/workflows/ci-lint.yml
# run default ci checks against released version # run default ci checks against released version
default-checks: default-checks:
uses: ./.github/workflows/ci-default.yml uses: ./.github/workflows/ci-default.yml
@ -14,7 +11,7 @@ jobs:
# get the version tag that triggered this workflow # get the version tag that triggered this workflow
get-version-tag: get-version-tag:
# prep version release only if all checks pass # prep version release only if all checks pass
needs: [lint-checks, default-checks] needs: default-checks
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
git-tag: ${{ steps.git-tag.outputs.tag }} git-tag: ${{ steps.git-tag.outputs.tag }}