From a85fef1d51e51520df2aef355de01a8bceef8da3 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 10:42:05 +0100 Subject: [PATCH 01/33] Automate the creation of a version tag on a monthly basis --- .github/workflows/create_version.yml | 40 ++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/create_version.yml diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml new file mode 100644 index 0000000000..9eb9eac759 --- /dev/null +++ b/.github/workflows/create_version.yml @@ -0,0 +1,40 @@ +name: Create a new version tag +on: + workflow_dispatch: + schedule: + # trigger at 0:00 on the first day of each month + - cron: '0 0 1 * *' + +jobs: + quarterly_release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + #create a new branch for the version tag + - name: Create new branch + run: | + git checkout -b new_version_4.0.0-$(date +'%Y.%m.%d') + + - name: Create version tag + run: | + git config user.email "t8ddy.bot@gmail.com" + git config user.name "t8ddy" + git tag "v4.0.0-$(date +'%Y.%m.%d')" + git push origin "v4.0.0-$(date +'%Y.%m.%d')" + - name: Push new branch including tag + run: | + git push --tags --set-upstream origin new_version_4.0.0-$(date +'%Y.%m.%d') + + # Create a PR for the new version tag + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "Create new version tag v4.0.0-$(date +'%Y.%m.%d')" + title: "Create new version tag v4.0.0-$(date +'%Y.%m.%d')" + body: "This PR creates a new version tag v4.0.0-$(date +'%Y.%m.%d') for the quarterly release." + base: main + head: new_version_4.0.0-$(date +'%Y.%m.%d') \ No newline at end of file From 64c7de6d1bfba8aecdddb3e3838c71cb7cff1140 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:27:14 +0100 Subject: [PATCH 02/33] test --- .github/workflows/create_version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 9eb9eac759..c55126e22e 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -1,5 +1,6 @@ name: Create a new version tag on: + pull_request: workflow_dispatch: schedule: # trigger at 0:00 on the first day of each month From b972dee16aff1a7073652cc9e018e15bb71743a4 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:28:36 +0100 Subject: [PATCH 03/33] fix push command --- .github/workflows/create_version.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index c55126e22e..3a0d9edb29 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -24,9 +24,6 @@ jobs: git config user.email "t8ddy.bot@gmail.com" git config user.name "t8ddy" git tag "v4.0.0-$(date +'%Y.%m.%d')" - git push origin "v4.0.0-$(date +'%Y.%m.%d')" - - name: Push new branch including tag - run: | git push --tags --set-upstream origin new_version_4.0.0-$(date +'%Y.%m.%d') # Create a PR for the new version tag From f4d82c032e28970fa4d64a3760192d4d20cea8b7 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:35:15 +0100 Subject: [PATCH 04/33] update token and checkout-action --- .github/workflows/create_version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 3a0d9edb29..7dc824e606 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -12,6 +12,7 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v2 + token: ${{ secrets.T8DDY_TOKEN }} with: fetch-depth: 0 #create a new branch for the version tag From 83b6edd7749e068f92320320bb7428074420fc1c Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:38:37 +0100 Subject: [PATCH 05/33] update token --- .github/workflows/create_version.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 7dc824e606..74570cd277 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -11,9 +11,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 - token: ${{ secrets.T8DDY_TOKEN }} + uses: actions/checkout@v6 with: + token: ${{ secrets.T8DDY_TOKEN }} fetch-depth: 0 #create a new branch for the version tag - name: Create new branch @@ -31,7 +31,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.T8DDY_TOKEN }} commit-message: "Create new version tag v4.0.0-$(date +'%Y.%m.%d')" title: "Create new version tag v4.0.0-$(date +'%Y.%m.%d')" body: "This PR creates a new version tag v4.0.0-$(date +'%Y.%m.%d') for the quarterly release." From fa06673c2782b9e6d8034ec868ac0942269bb49b Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:40:26 +0100 Subject: [PATCH 06/33] update name of the job --- .github/workflows/create_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 74570cd277..4513775a47 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -7,7 +7,7 @@ on: - cron: '0 0 1 * *' jobs: - quarterly_release: + monthly_release: runs-on: ubuntu-latest steps: - name: Checkout code From 32e33e0c050e7a60db9c8c23fa10bc5e50b99db5 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:40:40 +0100 Subject: [PATCH 07/33] create branch and tag in one command --- .github/workflows/create_version.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 4513775a47..a304d5ca75 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -16,12 +16,9 @@ jobs: token: ${{ secrets.T8DDY_TOKEN }} fetch-depth: 0 #create a new branch for the version tag - - name: Create new branch - run: | - git checkout -b new_version_4.0.0-$(date +'%Y.%m.%d') - - name: Create version tag run: | + git checkout -b new_version_4.0.0-$(date +'%Y.%m.%d') git config user.email "t8ddy.bot@gmail.com" git config user.name "t8ddy" git tag "v4.0.0-$(date +'%Y.%m.%d')" From 7be34e4f013c9f441c9dd0eecffa97d1942770c5 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:51:49 +0100 Subject: [PATCH 08/33] update a comment --- .github/workflows/create_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index a304d5ca75..21fa04e709 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -15,7 +15,7 @@ jobs: with: token: ${{ secrets.T8DDY_TOKEN }} fetch-depth: 0 - #create a new branch for the version tag + #create a new branch for the new version tag - name: Create version tag run: | git checkout -b new_version_4.0.0-$(date +'%Y.%m.%d') From e70a47141411dacfd6d83d1cab931aa19f7c0475 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 13:56:16 +0100 Subject: [PATCH 09/33] checkout the main branch --- .github/workflows/create_version.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 21fa04e709..f3103f0924 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -10,11 +10,13 @@ jobs: monthly_release: runs-on: ubuntu-latest steps: + #checkout main branch - name: Checkout code uses: actions/checkout@v6 with: token: ${{ secrets.T8DDY_TOKEN }} fetch-depth: 0 + ref: main #create a new branch for the new version tag - name: Create version tag run: | From 675041712f055eeec78b2aeab4df8719bd661674 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:04:25 +0100 Subject: [PATCH 10/33] test --- .github/workflows/create_version.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index f3103f0924..349a58cbc9 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -1,4 +1,7 @@ name: Create a new version tag + +contents: write + on: pull_request: workflow_dispatch: @@ -17,7 +20,7 @@ jobs: token: ${{ secrets.T8DDY_TOKEN }} fetch-depth: 0 ref: main - #create a new branch for the new version tag + #create a new branch for the version tag - name: Create version tag run: | git checkout -b new_version_4.0.0-$(date +'%Y.%m.%d') From 3a1a29981bebcf06b3f5eb8e81d297a6beb68b21 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:04:56 +0100 Subject: [PATCH 11/33] delete content specification --- .github/workflows/create_version.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 349a58cbc9..10062f4e2c 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -1,7 +1,5 @@ name: Create a new version tag -contents: write - on: pull_request: workflow_dispatch: From ea47e2013b5e38e64cf4340e35fe2c580615bbbb Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:07:27 +0100 Subject: [PATCH 12/33] test push From e0d33866f010d2b0232f1898d7432a1010a8a35a Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:19:59 +0100 Subject: [PATCH 13/33] another test From d3bdfe54cdad23587819eb02421ee5796b1aad75 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:22:58 +0100 Subject: [PATCH 14/33] fix usage of create pr --- .github/workflows/create_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 10062f4e2c..4c8d9cddf1 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -36,4 +36,4 @@ jobs: title: "Create new version tag v4.0.0-$(date +'%Y.%m.%d')" body: "This PR creates a new version tag v4.0.0-$(date +'%Y.%m.%d') for the quarterly release." base: main - head: new_version_4.0.0-$(date +'%Y.%m.%d') \ No newline at end of file + branch: new_version_4.0.0-$(date +'%Y.%m.%d') \ No newline at end of file From b6f07bdc397c2bd552ae3c1233f4cae4296c84a2 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:24:47 +0100 Subject: [PATCH 15/33] test From 21682caf1064052d2e8a0ffa030909acdf25c4b3 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:31:00 +0100 Subject: [PATCH 16/33] replace explicit version naming --- .github/workflows/create_version.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 4c8d9cddf1..f95ee4b26f 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -18,22 +18,25 @@ jobs: token: ${{ secrets.T8DDY_TOKEN }} fetch-depth: 0 ref: main + # Create version name accessible in the following steps + - name: Set version name + run: echo "VERSION_NAME=v4.0.0-$(date +'%Y.%m.%d')" >> $GITHUB_ENV #create a new branch for the version tag - name: Create version tag run: | - git checkout -b new_version_4.0.0-$(date +'%Y.%m.%d') + git checkout -b new_version_${{ env.VERSION_NAME }} git config user.email "t8ddy.bot@gmail.com" git config user.name "t8ddy" - git tag "v4.0.0-$(date +'%Y.%m.%d')" - git push --tags --set-upstream origin new_version_4.0.0-$(date +'%Y.%m.%d') + git tag "${{ env.VERSION_NAME }}" + git push --tags --set-upstream origin new_version_${{ env.VERSION_NAME }} # Create a PR for the new version tag - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: token: ${{ secrets.T8DDY_TOKEN }} - commit-message: "Create new version tag v4.0.0-$(date +'%Y.%m.%d')" - title: "Create new version tag v4.0.0-$(date +'%Y.%m.%d')" - body: "This PR creates a new version tag v4.0.0-$(date +'%Y.%m.%d') for the quarterly release." + commit-message: "Create new version tag ${{ env.VERSION_NAME }}" + title: "Create new version tag ${{ env.VERSION_NAME }}" + body: "This PR creates a new version tag ${{ env.VERSION_NAME }} for the quarterly release." base: main - branch: new_version_4.0.0-$(date +'%Y.%m.%d') \ No newline at end of file + branch: new_version_${{ env.VERSION_NAME }} \ No newline at end of file From a92745cc5ffabecbc18aa1d4a6f90d2c455dc792 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:35:20 +0100 Subject: [PATCH 17/33] avoid duplicate authorization --- .github/workflows/create_version.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index f95ee4b26f..082deaef99 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -34,7 +34,6 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: - token: ${{ secrets.T8DDY_TOKEN }} commit-message: "Create new version tag ${{ env.VERSION_NAME }}" title: "Create new version tag ${{ env.VERSION_NAME }}" body: "This PR creates a new version tag ${{ env.VERSION_NAME }} for the quarterly release." From 47bbfcad4b194947cb351bb497c6e2dc2ce5306b Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:43:44 +0100 Subject: [PATCH 18/33] manage authorization --- .github/workflows/create_version.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 082deaef99..6f92e36b54 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -15,9 +15,9 @@ jobs: - name: Checkout code uses: actions/checkout@v6 with: - token: ${{ secrets.T8DDY_TOKEN }} fetch-depth: 0 ref: main + persist-credentials: false # Create version name accessible in the following steps - name: Set version name run: echo "VERSION_NAME=v4.0.0-$(date +'%Y.%m.%d')" >> $GITHUB_ENV @@ -27,15 +27,19 @@ jobs: git checkout -b new_version_${{ env.VERSION_NAME }} git config user.email "t8ddy.bot@gmail.com" git config user.name "t8ddy" + # configure remote to use the secret token for pushing + git remote set-url origin https://x-access-token:${{ secrets.T8DDY_TOKEN }}@github.com/${{ github.repository }} git tag "${{ env.VERSION_NAME }}" - git push --tags --set-upstream origin new_version_${{ env.VERSION_NAME }} + git push --set-upstream origin new_version_${{ env.VERSION_NAME }} + git push origin --tags # Create a PR for the new version tag - name: Create Pull Request uses: peter-evans/create-pull-request@v5 with: + token: ${{ secrets.T8DDY_TOKEN }} commit-message: "Create new version tag ${{ env.VERSION_NAME }}" title: "Create new version tag ${{ env.VERSION_NAME }}" - body: "This PR creates a new version tag ${{ env.VERSION_NAME }} for the quarterly release." + body: "This PR creates a new version tag ${{ env.VERSION_NAME }} for the monthly release." base: main branch: new_version_${{ env.VERSION_NAME }} \ No newline at end of file From 95d2016b5ef4a60a5e8adbc77ef46a59f6965b40 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:44:42 +0100 Subject: [PATCH 19/33] test From e7c646932cd2a9eec28c6e0ef501a13c0274c4af Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:49:15 +0100 Subject: [PATCH 20/33] we actually don't need to create a new branch for a tag --- .github/workflows/create_version.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 6f92e36b54..7815ea13df 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -24,22 +24,9 @@ jobs: #create a new branch for the version tag - name: Create version tag run: | - git checkout -b new_version_${{ env.VERSION_NAME }} git config user.email "t8ddy.bot@gmail.com" git config user.name "t8ddy" # configure remote to use the secret token for pushing git remote set-url origin https://x-access-token:${{ secrets.T8DDY_TOKEN }}@github.com/${{ github.repository }} git tag "${{ env.VERSION_NAME }}" - git push --set-upstream origin new_version_${{ env.VERSION_NAME }} - git push origin --tags - - # Create a PR for the new version tag - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 - with: - token: ${{ secrets.T8DDY_TOKEN }} - commit-message: "Create new version tag ${{ env.VERSION_NAME }}" - title: "Create new version tag ${{ env.VERSION_NAME }}" - body: "This PR creates a new version tag ${{ env.VERSION_NAME }} for the monthly release." - base: main - branch: new_version_${{ env.VERSION_NAME }} \ No newline at end of file + git push origin --tags \ No newline at end of file From 5b1b41f778147c0edf96f037697c24b9bcf3ebe6 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Tue, 9 Dec 2025 14:50:45 +0100 Subject: [PATCH 21/33] dont trigger on push --- .github/workflows/create_version.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 7815ea13df..ce924ba240 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -1,7 +1,6 @@ name: Create a new version tag on: - pull_request: workflow_dispatch: schedule: # trigger at 0:00 on the first day of each month From 6ebceeba3f212739da703979376d5bacf57be2f1 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:19:35 +0100 Subject: [PATCH 22/33] add license statement --- .github/workflows/create_version.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index ce924ba240..86f32cc6d0 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -1,5 +1,25 @@ name: Create a new version tag +# This file is part of t8code. +# t8code is a C library to manage a collection (a forest) of multiple +# connected adaptive space-trees of general element types in parallel. +# +# Copyright (C) 2024 the developers +# +# t8code is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# t8code is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with t8code; if not, write to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + on: workflow_dispatch: schedule: From 508509fc3aff0c964e8d77ab0e58e79f9ca875ff Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:21:44 +0100 Subject: [PATCH 23/33] try automated extraction of the latest version --- .github/workflows/create_version.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 86f32cc6d0..695bbcf386 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -37,6 +37,30 @@ jobs: fetch-depth: 0 ref: main persist-credentials: false + # Get the current version from the latest tag + - name: Get latest tag + id: get_latest_tag + run: | + LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`) + echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV + echo "LATEST_TAG=$LATEST_TAG" + # Get Major, Minor, Patch version numbers + - name: Parse version numbers + id: parse_version + run: | + VERSION_REGEX="v([0-9]+)\\.([0-9]+)\\.([0-9]+)" + if [[ "${{ env.LATEST_TAG }}" =~ $VERSION_REGEX ]]; then + MAJOR="${BASH_REMATCH[1]}" + MINOR="${BASH_REMATCH[2]}" + PATCH="${BASH_REMATCH[3]}" + echo "MAJOR=$MAJOR" >> $GITHUB_ENV + echo "MINOR=$MINOR" >> $GITHUB_ENV + echo "PATCH=$PATCH" >> $GITHUB_ENV + echo "MAJOR=$MAJOR, MINOR=$MINOR, PATCH=$PATCH" + else + echo "No valid tag found, aborting." + exit 1 + fi # Create version name accessible in the following steps - name: Set version name run: echo "VERSION_NAME=v4.0.0-$(date +'%Y.%m.%d')" >> $GITHUB_ENV From 7f07e4b6fb960cf562fb096a9fca310820e7c3f5 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:22:42 +0100 Subject: [PATCH 24/33] update comment we don't create a new branch for the version tag. --- .github/workflows/create_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version.yml index 695bbcf386..70e3eb1b16 100644 --- a/.github/workflows/create_version.yml +++ b/.github/workflows/create_version.yml @@ -64,7 +64,7 @@ jobs: # Create version name accessible in the following steps - name: Set version name run: echo "VERSION_NAME=v4.0.0-$(date +'%Y.%m.%d')" >> $GITHUB_ENV - #create a new branch for the version tag + # Create a new version tag - name: Create version tag run: | git config user.email "t8ddy.bot@gmail.com" From 812293df88423074f319038bf93ed0e6540debb9 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:23:22 +0100 Subject: [PATCH 25/33] Moved and renamed file --- .github/workflows/{create_version.yml => create_version_tag.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{create_version.yml => create_version_tag.yml} (100%) diff --git a/.github/workflows/create_version.yml b/.github/workflows/create_version_tag.yml similarity index 100% rename from .github/workflows/create_version.yml rename to .github/workflows/create_version_tag.yml From eff4b6c1316b08da0ff59273b28d2dae8680a4c5 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:50:49 +0100 Subject: [PATCH 26/33] Trigger on PR for tests --- .github/workflows/create_version_tag.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index 70e3eb1b16..3c6cec04a4 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -21,6 +21,7 @@ name: Create a new version tag # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. on: + pull_request: workflow_dispatch: schedule: # trigger at 0:00 on the first day of each month From 7e5440fd8e1aac480d63bf309e9e1c3ec51d964d Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:53:09 +0100 Subject: [PATCH 27/33] Use envariables to create the name of the new tag. --- .github/workflows/create_version_tag.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index 3c6cec04a4..45dff6609d 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -64,7 +64,9 @@ jobs: fi # Create version name accessible in the following steps - name: Set version name - run: echo "VERSION_NAME=v4.0.0-$(date +'%Y.%m.%d')" >> $GITHUB_ENV + run: | + echo "VERSION_NAME=v${MAJOR}.$((MINOR + 1)).0-$(date +'%Y.%m.%d')" >> $GITHUB_ENV + echo "VERSION_NAME=$VERSION_NAME" # Create a new version tag - name: Create version tag run: | From 546f35d959bffb4df964200964608d9f75596fbc Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:55:23 +0100 Subject: [PATCH 28/33] fix autofill type --- .github/workflows/create_version_tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index 45dff6609d..9514eaf105 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -65,8 +65,8 @@ jobs: # Create version name accessible in the following steps - name: Set version name run: | - echo "VERSION_NAME=v${MAJOR}.$((MINOR + 1)).0-$(date +'%Y.%m.%d')" >> $GITHUB_ENV - echo "VERSION_NAME=$VERSION_NAME" + echo "VERSION_NAME=v${MAJOR}.${MINOR}.${PATCH}-$(date +'%Y.%m.%d')" >> $GITHUB_ENV + echo "VERSION_NAME=${VERSION_NAME}" # Create a new version tag - name: Create version tag run: | From 0b03002aaf1e2e6e4970e62bfa860793800d316d Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 09:57:43 +0100 Subject: [PATCH 29/33] fix debug output --- .github/workflows/create_version_tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index 9514eaf105..c3c88f744a 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -66,7 +66,7 @@ jobs: - name: Set version name run: | echo "VERSION_NAME=v${MAJOR}.${MINOR}.${PATCH}-$(date +'%Y.%m.%d')" >> $GITHUB_ENV - echo "VERSION_NAME=${VERSION_NAME}" + echo "VERSION_NAME=$VERSION_NAME" # Create a new version tag - name: Create version tag run: | From 759ec5f314128cc1c2c26e05c84d14161c1f3554 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 10:01:02 +0100 Subject: [PATCH 30/33] use env vars --- .github/workflows/create_version_tag.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index c3c88f744a..a3d7b747e7 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -65,8 +65,8 @@ jobs: # Create version name accessible in the following steps - name: Set version name run: | - echo "VERSION_NAME=v${MAJOR}.${MINOR}.${PATCH}-$(date +'%Y.%m.%d')" >> $GITHUB_ENV - echo "VERSION_NAME=$VERSION_NAME" + echo "VERSION_NAME=v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}-$(date +'%Y.%m.%d')" >> $GITHUB_ENV + echo "VERSION_NAME=${{ env.VERSION_NAME }}" # Create a new version tag - name: Create version tag run: | From fcff52c8d597b5437bd8d789ada989570fac9c66 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 10:12:25 +0100 Subject: [PATCH 31/33] try to fix debug output --- .github/workflows/create_version_tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index a3d7b747e7..90b2746a9b 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -66,7 +66,7 @@ jobs: - name: Set version name run: | echo "VERSION_NAME=v${{ env.MAJOR }}.${{ env.MINOR }}.${{ env.PATCH }}-$(date +'%Y.%m.%d')" >> $GITHUB_ENV - echo "VERSION_NAME=${{ env.VERSION_NAME }}" + echo "VERSION_NAME=$VERSION_NAME" # Create a new version tag - name: Create version tag run: | From 70c6e1fdeb0d6a487b448606d9df927ba6d69f50 Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 10:15:43 +0100 Subject: [PATCH 32/33] remove test trigger --- .github/workflows/create_version_tag.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index 90b2746a9b..8c90bfdc3b 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -21,7 +21,6 @@ name: Create a new version tag # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. on: - pull_request: workflow_dispatch: schedule: # trigger at 0:00 on the first day of each month From 527d311d4356518d2b301fb7362e5ee545fc7d1a Mon Sep 17 00:00:00 2001 From: David Knapp Date: Wed, 17 Dec 2025 16:21:52 +0100 Subject: [PATCH 33/33] Update .github/workflows/create_version_tag.yml Co-authored-by: lenaploetzke <70579874+lenaploetzke@users.noreply.github.com> --- .github/workflows/create_version_tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/create_version_tag.yml b/.github/workflows/create_version_tag.yml index 8c90bfdc3b..acee1ebbd8 100644 --- a/.github/workflows/create_version_tag.yml +++ b/.github/workflows/create_version_tag.yml @@ -4,7 +4,7 @@ name: Create a new version tag # t8code is a C library to manage a collection (a forest) of multiple # connected adaptive space-trees of general element types in parallel. # -# Copyright (C) 2024 the developers +# Copyright (C) 2025 the developers # # t8code is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by