.github: Don't try and create releases for created branches

Dependabot will create a branch on the repo for it's updates this
triggers the release action (because it's the same event as a tag) which
will then fail leading to dependabot PRs not being automerged. Instead
only run the release check test on PRs or tag creation.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
(cherry picked from commit f6c058da56)
This commit is contained in:
Rob Bradford 2023-01-20 09:01:24 +00:00 committed by Bo Chen
parent b7b5b9d7e6
commit 42357c01f3

View File

@ -3,6 +3,7 @@ on: [pull_request, create]
jobs: jobs:
release: release:
if: (github.event_name == 'create' && github.event.ref_type == 'tag') || github.event_name == 'pull_request'
name: Release name: Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: