Skip to content

Commit dc837bd

Browse files
committed
CI: determine the version for the package to unpack
1 parent 20efa7f commit dc837bd

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ jobs:
4545
- name: Build the plugin
4646
run: ./gradlew buildPlugin
4747

48+
- if: matrix.image == 'ubuntu-22.04'
49+
id: version
50+
name: Determine the version
51+
shell: pwsh
52+
run: '"version=$(./scripts/Get-Version.ps1)" >> $env:GITHUB_OUTPUT'
53+
4854
- name: Unpack distribution # for uploading
4955
shell: pwsh
5056
run: scripts/Unpack-Distribution.ps1

scripts/Get-Version.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Set-StrictMode -Version Latest
1515
$ErrorActionPreference = 'Stop'
1616

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

0 commit comments

Comments
 (0)