Skip to content

Commit 9eb9594

Browse files
committed
chore(ci): use no increment for alpha branches
1 parent e8afbc6 commit 9eb9594

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/build-and-publish.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ jobs:
3535
with:
3636
fetch-depth: 0
3737

38+
- name: Fetch tags
39+
run: |
40+
git fetch --tags --force
41+
git tag
42+
3843
- name: Execute GitVersion
3944
id: gitversion
4045
uses: gittools/actions/gitversion/execute@v1

GitVersion.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
workflow: GitHubFlow/v1
1+
workflow: GitHubFlow/v1
2+
3+
branches:
4+
release:
5+
regex: ^releases?[/-]v?2
6+
label: alpha
7+
prevent-increment:
8+
when-current-commit-tagged: true

0 commit comments

Comments
 (0)