From 756d0676a2fc825312d68471d4bb32da1a62699d Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Mon, 3 Jul 2023 10:55:43 +0800 Subject: [PATCH] Run publish maven snapshots on all branches matching pattern Signed-off-by: Hailong Cui --- .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 0ad74d66..7e1b70b3 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: