From 7cee4a7157022dd595c26a6e0d82e83e81bb0bea Mon Sep 17 00:00:00 2001 From: JA de Leon Date: Mon, 8 Jun 2026 18:03:33 -0600 Subject: [PATCH 1/2] fix: use PAT_TOKEN for release workflow push permissions --- .github/workflows/release.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01b27a5..782ab3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,13 +9,12 @@ jobs: name: Bump version and release runs-on: self-hosted permissions: - contents: write + contents: write steps: - - name: Checkout repo - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: - fetch-depth: 0 # necesario para leer tags y changelog - token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + token: ${{ secrets.PAT_TOKEN }} - name: Run tests before release run: wolframscript -file tests/RunAllTests.wl @@ -33,8 +32,7 @@ jobs: MAJOR=$(echo $VERSION | cut -d. -f1) MINOR=$(echo $VERSION | cut -d. -f2) PATCH=$(echo $VERSION | cut -d. -f3) - NEW_PATCH=$((PATCH + 1)) - NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH" + NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))" echo "$NEW_VERSION" > QMB/version.txt echo "new=$NEW_VERSION" >> $GITHUB_OUTPUT @@ -60,3 +58,4 @@ jobs: with: tag_name: v${{ steps.bump.outputs.new }} generate_release_notes: true + token: ${{ secrets.PAT_TOKEN }} From 5d65993d45476366591d6609b341474ff02cc590 Mon Sep 17 00:00:00 2001 From: JA de Leon Date: Mon, 8 Jun 2026 18:03:33 -0600 Subject: [PATCH 2/2] fix: use PAT_TOKEN for release workflow push permissions --- .github/workflows/release.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 01b27a5..782ab3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,13 +9,12 @@ jobs: name: Bump version and release runs-on: self-hosted permissions: - contents: write + contents: write steps: - - name: Checkout repo - uses: actions/checkout@v4 + - uses: actions/checkout@v4 with: - fetch-depth: 0 # necesario para leer tags y changelog - token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + token: ${{ secrets.PAT_TOKEN }} - name: Run tests before release run: wolframscript -file tests/RunAllTests.wl @@ -33,8 +32,7 @@ jobs: MAJOR=$(echo $VERSION | cut -d. -f1) MINOR=$(echo $VERSION | cut -d. -f2) PATCH=$(echo $VERSION | cut -d. -f3) - NEW_PATCH=$((PATCH + 1)) - NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH" + NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))" echo "$NEW_VERSION" > QMB/version.txt echo "new=$NEW_VERSION" >> $GITHUB_OUTPUT @@ -60,3 +58,4 @@ jobs: with: tag_name: v${{ steps.bump.outputs.new }} generate_release_notes: true + token: ${{ secrets.PAT_TOKEN }}