Skip to content

Commit a796152

Browse files
authored
Merge pull request #8 from deleonja/develop
Develop
2 parents 39d3c44 + 0f1a734 commit a796152

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,12 @@ jobs:
99
name: Bump version and release
1010
runs-on: self-hosted
1111
permissions:
12-
contents: write
12+
contents: write
1313
steps:
14-
- name: Checkout repo
15-
uses: actions/checkout@v4
14+
- uses: actions/checkout@v4
1615
with:
17-
fetch-depth: 0 # necesario para leer tags y changelog
18-
token: ${{ secrets.GITHUB_TOKEN }}
16+
fetch-depth: 0
17+
token: ${{ secrets.PAT_TOKEN }}
1918

2019
- name: Run tests before release
2120
run: wolframscript -file tests/RunAllTests.wl
@@ -33,8 +32,7 @@ jobs:
3332
MAJOR=$(echo $VERSION | cut -d. -f1)
3433
MINOR=$(echo $VERSION | cut -d. -f2)
3534
PATCH=$(echo $VERSION | cut -d. -f3)
36-
NEW_PATCH=$((PATCH + 1))
37-
NEW_VERSION="$MAJOR.$MINOR.$NEW_PATCH"
35+
NEW_VERSION="$MAJOR.$MINOR.$((PATCH + 1))"
3836
echo "$NEW_VERSION" > QMB/version.txt
3937
echo "new=$NEW_VERSION" >> $GITHUB_OUTPUT
4038
@@ -60,3 +58,4 @@ jobs:
6058
with:
6159
tag_name: v${{ steps.bump.outputs.new }}
6260
generate_release_notes: true
61+
token: ${{ secrets.PAT_TOKEN }}

0 commit comments

Comments
 (0)