Skip to content

Commit e8b465d

Browse files
committed
fix workflow
1 parent 5c830a7 commit e8b465d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/minor-version-bump.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,15 @@ on:
44

55
jobs:
66
minor-version-bump-check:
7-
if: github.head_ref == '^v\d+\.\d+.*$' # Only runs on branches starting with vX.X (e.g., v1.2, v1.2.3, v1.2-main)
87
permissions: {}
98
runs-on: ubuntu-latest
109
steps:
10+
- name: Check branch name
11+
run: |
12+
# Only continue on branches starting with vX.X (e.g. v1.2, v1.2.3, v1.2-main)
13+
if [[ ! "$GITHUB_HEAD_REF" =~ ^v\.[0-9]+\.[0-9]+.*$ ]]; then
14+
exit 0
15+
fi
16+
1117
- name: Minor version bump check
1218
uses: awslabs/aws-kotlin-repo-tools/.github/actions/minor-version-bump@main

0 commit comments

Comments
 (0)