Skip to content

Commit a865845

Browse files
committed
add v[0-9]
1 parent b73a127 commit a865845

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/autofix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: autofix.ci # needed to securely identify the workflow
33
on:
44
pull_request:
55
push:
6-
branches: [main, v4, '*-pre', '*-maint']
6+
branches: [main, 'v[0-9]', '*-pre', '*-maint']
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
push:
5-
branches: [main, v4, '*-pre', '*-maint']
5+
branches: [main, 'v[0-9]', '*-pre', '*-maint']
66

77
concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
@@ -71,8 +71,8 @@ jobs:
7171
echo "prerelease=true" >> "$GITHUB_OUTPUT"
7272
elif [[ "$BRANCH" == *-maint ]]; then
7373
echo "tag=maint" >> "$GITHUB_OUTPUT"
74-
elif [[ "$BRANCH" == "v4" ]]; then
75-
echo "tag=v4" >> "$GITHUB_OUTPUT"
74+
elif [[ "$BRANCH" =~ ^v[0-9]+$ ]]; then
75+
echo "tag=$BRANCH" >> "$GITHUB_OUTPUT"
7676
fi
7777
- name: Publish Packages
7878
if: steps.commit.outputs.committed == 'true'

0 commit comments

Comments
 (0)