diff --git a/.github/workflows/check-go-dependencies-task.yml b/.github/workflows/check-go-dependencies-task.yml index f2013d855e2..2d30274acf1 100644 --- a/.github/workflows/check-go-dependencies-task.yml +++ b/.github/workflows/check-go-dependencies-task.yml @@ -43,7 +43,7 @@ jobs: - name: Determine if the rest of the workflow should run id: determination run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" + RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x" # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. if [[ "${{ github.event_name }}" != "create" || diff --git a/.github/workflows/check-go-task.yml b/.github/workflows/check-go-task.yml index 89443f77018..b4acae970f3 100644 --- a/.github/workflows/check-go-task.yml +++ b/.github/workflows/check-go-task.yml @@ -34,7 +34,7 @@ jobs: - name: Determine if the rest of the workflow should run id: determination run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" + RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x" # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. if [[ \ "${{ github.event_name }}" != "create" || \ diff --git a/.github/workflows/check-i18n-task.yml b/.github/workflows/check-i18n-task.yml index 659f6e4a92c..085c3191a70 100644 --- a/.github/workflows/check-i18n-task.yml +++ b/.github/workflows/check-i18n-task.yml @@ -8,8 +8,8 @@ env: on: push: branches: - # Release branches have names like 0.8.x, 0.9.x, ... - - "[0-9]+.[0-9]+.x" + # Release branches have names like v0.35.x, v0.36.x, ... + - "v[0-9]+.[0-9]+.x" workflow_dispatch: repository_dispatch: diff --git a/.github/workflows/check-markdown-task.yml b/.github/workflows/check-markdown-task.yml index 12dd65d6c2c..d649159a4f8 100644 --- a/.github/workflows/check-markdown-task.yml +++ b/.github/workflows/check-markdown-task.yml @@ -53,7 +53,7 @@ jobs: - name: Determine if the rest of the workflow should run id: determination run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" + RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x" # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. if [[ "${{ github.event_name }}" != "create" || diff --git a/.github/workflows/check-protobuf-task.yml b/.github/workflows/check-protobuf-task.yml index 9e46bede483..65d2e0c2709 100644 --- a/.github/workflows/check-protobuf-task.yml +++ b/.github/workflows/check-protobuf-task.yml @@ -29,7 +29,7 @@ jobs: - name: Determine if the rest of the workflow should run id: determination run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" + RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x" # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. if [[ \ "${{ github.event_name }}" != "create" || \ diff --git a/.github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml b/.github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml index 1f8902be25b..39766c9903f 100644 --- a/.github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml +++ b/.github/workflows/deploy-cobra-mkdocs-versioned-poetry.yml @@ -12,8 +12,8 @@ on: branches: # Branch to base "dev" website on. Set in siteversion.py also. - master - # Release branches have names like 0.8.x, 0.9.x, ... - - "[0-9]+.[0-9]+.x" + # Release branches have names like v0.35.x, 0.36.x, ... + - "v[0-9]+.[0-9]+.x" paths: - "docs/**" - ".github/workflows/deploy-cobra-mkdocs-versioned-poetry.ya?ml" @@ -38,7 +38,7 @@ jobs: - name: Determine if documentation should be published on this workflow run id: determination run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" + RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x" if [[ "${{ github.event_name }}" == "push" || ( "${{ github.event_name }}" == "create" && "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX ) ]]; then RESULT="true" else diff --git a/.github/workflows/publish-go-tester-task.yml b/.github/workflows/publish-go-tester-task.yml index f358a4fe4e7..d1103965cc8 100644 --- a/.github/workflows/publish-go-tester-task.yml +++ b/.github/workflows/publish-go-tester-task.yml @@ -38,7 +38,7 @@ jobs: - name: Determine if the rest of the workflow should run id: determination run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" + RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x" TAG_REGEX="refs/tags/.*" # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. if [[ \ diff --git a/.github/workflows/release-go-task.yml b/.github/workflows/release-go-task.yml index fa40a11cb1e..e6f103de132 100644 --- a/.github/workflows/release-go-task.yml +++ b/.github/workflows/release-go-task.yml @@ -13,7 +13,7 @@ env: on: push: tags: - - "[0-9]+.[0-9]+.[0-9]+*" + - "v[0-9]+.[0-9]+.[0-9]+*" jobs: create-release-artifacts: @@ -45,7 +45,7 @@ jobs: if: matrix.os == 'Windows_32bit' uses: arduino/create-changelog@v1 with: - tag-regex: '^[0-9]+\.[0-9]+\.[0-9]+.*$' + tag-regex: '^v[0-9]+\.[0-9]+\.[0-9]+.*$' filter-regex: '^\[(skip|changelog)[ ,-](skip|changelog)\].*' case-insensitive-regex: true changelog-file-path: "${{ env.DIST_DIR }}/CHANGELOG.md" diff --git a/.github/workflows/test-go-task.yml b/.github/workflows/test-go-task.yml index 4b4c2865a4c..ba1aa2e4a0f 100644 --- a/.github/workflows/test-go-task.yml +++ b/.github/workflows/test-go-task.yml @@ -43,7 +43,7 @@ jobs: - name: Determine if the rest of the workflow should run id: determination run: | - RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" + RELEASE_BRANCH_REGEX="refs/heads/v[0-9]+.[0-9]+.x" # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. if [[ \ "${{ github.event_name }}" != "create" || \ diff --git a/docs/UPGRADING.md b/docs/UPGRADING.md index 6b12115c0ff..537373e6d45 100644 --- a/docs/UPGRADING.md +++ b/docs/UPGRADING.md @@ -2,7 +2,7 @@ Here you can find a list of migration guides to handle breaking changes between releases of the CLI. -## 0.35.0 +## v0.35.0 ### CLI `debug --info` changed JSON output. diff --git a/install.sh b/install.sh index 1ef08729e69..d248dffdfb5 100755 --- a/install.sh +++ b/install.sh @@ -84,7 +84,7 @@ initDownloadTool() { checkLatestVersion() { # Use the GitHub releases webpage to find the latest version for this project # so we don't get rate-limited. - CHECKLATESTVERSION_REGEX="[0-9][A-Za-z0-9\.-]*" + CHECKLATESTVERSION_REGEX="v?[0-9][A-Za-z0-9\.-]*" CHECKLATESTVERSION_LATEST_URL="https://github.com/${PROJECT_OWNER}/${PROJECT_NAME}/releases/latest" if [ "$DOWNLOAD_TOOL" = "curl" ]; then CHECKLATESTVERSION_TAG=$(curl -SsL $CHECKLATESTVERSION_LATEST_URL | grep -o "Release $CHECKLATESTVERSION_REGEX ยท ${PROJECT_OWNER}/${PROJECT_NAME}" | grep -o "$CHECKLATESTVERSION_REGEX")