Skip to content

Commit 9ebae66

Browse files
fixup! Fix #83: Add support for custom shell
1 parent 6108dc6 commit 9ebae66

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

dist/index.js

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

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/action/input.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,15 @@ export class Input {
3232

3333
get version(): string {
3434
if (this.version_ !== undefined) return this.version_
35-
return (this.version_ = core.getInput('version', {
36-
required: true
37-
}))
35+
const input = core.getInput('version', {
36+
required: process.env['CPA_SHELL_MODE'] !== 'true'
37+
})
38+
39+
if (input === '' && process.env['CPA_SHELL_MODE'] === 'true') {
40+
return (this.version_ = '') // Dummy value for shell mode
41+
}
42+
43+
return (this.version_ = input)
3844
}
3945

4046
get imageURL(): string {

0 commit comments

Comments
 (0)