Skip to content

Commit 593c140

Browse files
committed
Introduce new "v" version format
1 parent 0f9b8af commit 593c140

11 files changed

+15
-15
lines changed

.github/workflows/check-go-dependencies-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Determine if the rest of the workflow should run
4444
id: determination
4545
run: |
46-
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
46+
RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x"
4747
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
4848
if [[
4949
"${{ github.event_name }}" != "create" ||

.github/workflows/check-go-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Determine if the rest of the workflow should run
3535
id: determination
3636
run: |
37-
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
37+
RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x"
3838
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
3939
if [[ \
4040
"${{ github.event_name }}" != "create" || \

.github/workflows/check-i18n-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ env:
88
on:
99
push:
1010
branches:
11-
# Release branches have names like 0.8.x, 0.9.x, ...
12-
- "[0-9]+.[0-9]+.x"
11+
# Release branches have names like v0.35.x, v0.36.x, ...
12+
- "v[0-9]+.[0-9]+.x"
1313
workflow_dispatch:
1414
repository_dispatch:
1515

.github/workflows/check-markdown-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Determine if the rest of the workflow should run
5454
id: determination
5555
run: |
56-
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
56+
RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x"
5757
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
5858
if [[
5959
"${{ github.event_name }}" != "create" ||

.github/workflows/check-protobuf-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Determine if the rest of the workflow should run
3030
id: determination
3131
run: |
32-
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
32+
RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x"
3333
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
3434
if [[ \
3535
"${{ github.event_name }}" != "create" || \

.github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ on:
1212
branches:
1313
# Branch to base "dev" website on. Set in siteversion.py also.
1414
- master
15-
# Release branches have names like 0.8.x, 0.9.x, ...
16-
- "[0-9]+.[0-9]+.x"
15+
# Release branches have names like v0.35.x, 0.36.x, ...
16+
- "v[0-9]+.[0-9]+.x"
1717
paths:
1818
- "docs/**"
1919
- ".github/workflows/deploy-cobra-mkdocs-versioned-poetry.ya?ml"
@@ -38,7 +38,7 @@ jobs:
3838
- name: Determine if documentation should be published on this workflow run
3939
id: determination
4040
run: |
41-
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
41+
RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x"
4242
if [[ "${{ github.event_name }}" == "push" || ( "${{ github.event_name }}" == "create" && "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX ) ]]; then
4343
RESULT="true"
4444
else

.github/workflows/publish-go-tester-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Determine if the rest of the workflow should run
3939
id: determination
4040
run: |
41-
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
41+
RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x"
4242
TAG_REGEX="refs/tags/.*"
4343
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
4444
if [[ \

.github/workflows/release-go-task.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
on:
1414
push:
1515
tags:
16-
- "[0-9]+.[0-9]+.[0-9]+*"
16+
- "v[0-9]+.[0-9]+.[0-9]+*"
1717

1818
jobs:
1919
create-release-artifacts:
@@ -45,7 +45,7 @@ jobs:
4545
if: matrix.os == 'Windows_32bit'
4646
uses: arduino/create-changelog@v1
4747
with:
48-
tag-regex: '^[0-9]+\.[0-9]+\.[0-9]+.*$'
48+
tag-regex: '^v[0-9]+\.[0-9]+\.[0-9]+.*$'
4949
filter-regex: '^\[(skip|changelog)[ ,-](skip|changelog)\].*'
5050
case-insensitive-regex: true
5151
changelog-file-path: "${{ env.DIST_DIR }}/CHANGELOG.md"

.github/workflows/test-go-task.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
- name: Determine if the rest of the workflow should run
4444
id: determination
4545
run: |
46-
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
46+
RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x"
4747
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
4848
if [[ \
4949
"${{ github.event_name }}" != "create" || \

docs/UPGRADING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Here you can find a list of migration guides to handle breaking changes between releases of the CLI.
44

5-
## 0.35.0
5+
## v0.35.0
66

77
### CLI `debug --info` changed JSON output.
88

install.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ initDownloadTool() {
8484
checkLatestVersion() {
8585
# Use the GitHub releases webpage to find the latest version for this project
8686
# so we don't get rate-limited.
87-
CHECKLATESTVERSION_REGEX="[0-9][A-Za-z0-9\.-]*"
87+
CHECKLATESTVERSION_REGEX="v?[0-9][A-Za-z0-9\.-]*"
8888
CHECKLATESTVERSION_LATEST_URL="https://github.com/${PROJECT_OWNER}/${PROJECT_NAME}/releases/latest"
8989
if [ "$DOWNLOAD_TOOL" = "curl" ]; then
9090
CHECKLATESTVERSION_TAG=$(curl -SsL $CHECKLATESTVERSION_LATEST_URL | grep -o "<title>Release $CHECKLATESTVERSION_REGEX · ${PROJECT_OWNER}/${PROJECT_NAME}" | grep -o "$CHECKLATESTVERSION_REGEX")

0 commit comments

Comments
 (0)