Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand All @@ -60,3 +58,4 @@ jobs:
with:
tag_name: v${{ steps.bump.outputs.new }}
generate_release_notes: true
token: ${{ secrets.PAT_TOKEN }}
Loading