From 3a25e53781e35d5c24953b92eec216fe3e65e1e1 Mon Sep 17 00:00:00 2001 From: Hailong Cui Date: Mon, 3 Jul 2023 19:15:01 +0800 Subject: [PATCH] Run publish maven snapshots on all branches matching pattern (#698) 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: