From bdc9dade5d08ce896f98844758e1f997c18b1b87 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Thu, 29 Jun 2023 19:43:12 -0700 Subject: [PATCH] Fixed the publish maven workflow to execute after pushes to release branches. (#837) 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: