Skip to content

Commit

Permalink
Update develop.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaloney111 authored Jun 10, 2024
1 parent f39c95e commit 0227476
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,16 @@ jobs:
- name: Get version of the project
id: project-version
uses: 'euberdeveloper/ga-project-version@main'

- name: Increase patch version by 1
run: echo "::set-output name=patch_version::$(echo ${{ steps.project-version.outputs.version }} | awk -F. '{$NF = $NF + 1;} 1' | sed 's/ /./g')"
id: increase-patch-version
run: |
$currentVersion = "${{ steps.project-version.outputs.version }}"
$versionArray = $currentVersion -split '\.'
$patchVersion = [int]$versionArray[2] + 1
$newVersion = "$($versionArray[0]).$($versionArray[1]).$patchVersion"
Write-Output "::set-output name=patch_version::$newVersion"
- name: 'change version'
uses: reedyuk/[email protected]
Expand Down

0 comments on commit 0227476

Please sign in to comment.