Skip to content

Commit 900e8d0

Browse files
Extract workflow script into its own file and update bundle
1 parent 3e9063e commit 900e8d0

3 files changed

Lines changed: 109 additions & 27 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
if($args.count -ne 1) {
2+
Write-Host "This command requires 1 arg with the version to check"
3+
exit 1
4+
}
5+
6+
$result = pkl.exe --version | Select-String -Pattern $args[0] -Quiet
7+
8+
if($result -eq "True") {
9+
exit 0
10+
} else {
11+
exit 1
12+
}

.github/workflows/ci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,5 @@ jobs:
6767
if: matrix.os != 'windows-latest'
6868

6969
- name: Confirm download (windows)
70-
run: |
71-
$result = pkl --version | Select-String -Pattern "Pkl 0.26.0" -Quiet
72-
if($result -eq "True") {
73-
exit 0
74-
} else {
75-
exit 1
76-
}
70+
run: .github/workflows/Check-Version.ps1 "Pkl 0.26.0"
7771
if: matrix.os == 'windows-latest'

dist/index.js

Lines changed: 96 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)