From 537fbe98c13d98b94dcd375202083dd64d8f38d0 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Thu, 29 Jun 2023 15:48:10 -0700 Subject: [PATCH] Fixed the publish maven workflow to execute after pushes to release branches. Signed-off-by: AWSHurneyt --- .github/workflows/maven-publish.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index 734589752..8b7b1164b 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -3,11 +3,10 @@ name: Publish snapshots to maven on: workflow_dispatch: push: - branches: [ - main - 1.* - 2.* - ] + branches: + - main + - '[0-9]+.[0-9]+' + - '[0-9]+.x' jobs: build-and-publish-snapshots: