From 7ee7915704ccf9ed2cb231e6fb63f86b121eae43 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Tue, 30 Apr 2024 16:05:04 -0700 Subject: [PATCH] Adjusted maven publish workflow to execute automatically when merging a PR. (#1531) 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 6d8793c10..31e21d66b 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: