From 9f390b03aafeace3f40a6a654cc2126a666cedef Mon Sep 17 00:00:00 2001 From: Crypta Eve Date: Mon, 20 May 2024 21:11:42 +0930 Subject: [PATCH] chore: update ci --- .github/workflows/main.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d722a55..68a91e6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,7 +8,7 @@ jobs: name: Checkout and tag runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: repository: eveseat/seat-docker ref: 'master' @@ -18,8 +18,9 @@ jobs: git config user.email github-actions@github.com currver=`cat version` a=(${currver//./ }) - ((a[2]++)) - newver="${a[0]}.${a[1]}.${a[2]}" + newrelease=${a[2]} + newrelease=$((newrelease+1)) + newver="${a[0]}.${a[1]}.${newrelease}" echo $newver > version git add version git commit -m "bump to version $newver"