From f6c058da56b93faf6249a9651b16fd8a1104f9a6 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 20 Jan 2023 09:01:24 +0000 Subject: [PATCH] .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 --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ff75adbfa..30d45c0d5 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -3,6 +3,7 @@ on: [pull_request, create] jobs: release: + if: (github.event_name == 'create' && github.event.ref_type == 'tag') || github.event_name == 'pull_request' name: Release runs-on: ubuntu-latest steps: