Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Nov 6, 2023
1 parent c7767c5 commit f83d989
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/handle-versioning-accross-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,14 @@ jobs:
extension-versioning:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: git-actions/set-user@v1

- name: Prevent branch warnings
run: |
# config git advice.detachedHead to false
git config advice.detachedHead false
- name: Get highest version number accross all branches
id: get-version
shell: pwsh
Expand Down Expand Up @@ -38,7 +43,7 @@ jobs:
git checkout $branch
# get the semantic version number from the vss-extension-dev.json file
$version = Get-Content -Path "src/$branch/vss-extension.json" | ConvertFrom-Json | Select-Object -ExpandProperty version
$version = Get-Content -Path "vss-extension.json" | ConvertFrom-Json | Select-Object -ExpandProperty version
Write-Host "Found version: [$version] in branch: [$branch]"
# check if the version is semantically higher than the highest version using SemVer
Expand Down

0 comments on commit f83d989

Please sign in to comment.