Skip to content

Commit 803e7a3

Browse files
.
1 parent 2150cdc commit 803e7a3

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.github/workflows/validate.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ jobs:
7474
shell: pwsh
7575
run: |
7676
Write-Output "Executable: $(${{ steps.uwp-build.outputs.executable }})"
77-
Write-Output "Export path: $(${{ steps.uwp-build.outputs.export-path }})"
78-
Get-ChildItem -Path $(${{ steps.uwp-build.outputs.export-path }}) -Force
77+
Write-Output "Export path: ${{ steps.uwp-build.outputs.export-path }}"
78+
Get-ChildItem -Path ${{ steps.uwp-build.outputs.export-path }} -Force

dist/index.js

+6
Original file line numberDiff line numberDiff line change
@@ -30608,6 +30608,12 @@ const main = async () => {
3060830608
executable = path.join(outputDirectory, `*.appx`);
3060930609
break;
3061030610
}
30611+
const execGlobber = await glob.create(executable);
30612+
const execFiles = await execGlobber.glob();
30613+
if (execFiles.length === 0) {
30614+
throw new Error(`No executable found.`);
30615+
}
30616+
executable = execFiles[0];
3061130617
core.info(`executable: "${executable}"`);
3061230618
core.setOutput(`executable`, executable);
3061330619
}

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ const main = async () => {
6666
executable = path.join(outputDirectory, `*.appx`);
6767
break;
6868
}
69+
const execGlobber = await glob.create(executable);
70+
const execFiles = await execGlobber.glob();
71+
if (execFiles.length === 0) { throw new Error(`No executable found.`); }
72+
executable = execFiles[0];
6973
core.info(`executable: "${executable}"`);
7074
core.setOutput(`executable`, executable);
7175
} catch (error) {

0 commit comments

Comments
 (0)