Skip to content

Commit

Permalink
CI: determine the version for the package to unpack
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Sep 30, 2024
1 parent 20efa7f commit dc837bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ jobs:
- name: Build the plugin
run: ./gradlew buildPlugin

- if: matrix.image == 'ubuntu-22.04'
id: version
name: Determine the version
shell: pwsh
run: '"version=$(./scripts/Get-Version.ps1)" >> $env:GITHUB_OUTPUT'

- name: Unpack distribution # for uploading
shell: pwsh
run: scripts/Unpack-Distribution.ps1
Expand Down
2 changes: 1 addition & 1 deletion scripts/Get-Version.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'

$file = & "$PSScriptRoot/Get-Distribution.ps1" -DistributionsLocation $DistributionsLocation
if (!($file.Name -match 'RiderTrxPlugin-(.*?)\.zip')) {
if (!($file.Name -match 'rider-trx-plugin-(.*?)\.zip')) {
throw "File name `"$($file.Name)`" doesn't match the expected pattern"
}

Expand Down

0 comments on commit dc837bd

Please sign in to comment.