Skip to content

Commit

Permalink
Try to make the linter happier
Browse files Browse the repository at this point in the history
  • Loading branch information
damies13 committed Feb 23, 2024
1 parent 5462a41 commit 16a9649
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/Package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ jobs:
- name: Set Version Number to Branch Name
if: ${{ env.isrrelease == 1 }}
run: |
numver=$(echo $branchname | sed -E 's/v([^-]*)/\1/')
numver=$(echo "$branchname" | sed -E 's/v([^-]*)/\1/')
echo "numver=$numver" >> "$GITHUB_ENV"
version=v$numver
echo "version=$version" >> "$GITHUB_ENV"
- name: Set New Version Number
if: ${{ env.isrrelease == 0 && env.ismaster == 0 }}
run: |
numver=$(echo $currrelease | sed -E 's/v([^-]*)/\1/')
numverparts=($(echo $numver | tr "." "\n"))
numver=$(echo "$currrelease" | sed -E 's/v([^-]*)/\1/')
numverparts=($(echo "$numver" | tr "." "\n"))
len=${#numverparts[@]}
if [ $len -gt 2 ]; then
numver=${numverparts[0]}.${numverparts[1]}.$((${numverparts[2]}+1))
numver=${numverparts[0]}.${numverparts[1]}.$(( numverparts[2] + 1))
elif [ $len -eq 2 ]; then
numver=${numverparts[0]}.${numverparts[1]}.1
else
Expand Down

0 comments on commit 16a9649

Please sign in to comment.