mirror of
https://github.com/gradle/actions.git
synced 2026-06-19 10:00:40 +00:00
Extract github actions utils
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import * as core from '@actions/core'
|
||||
|
||||
export function inputOrNull(name: string): string | null {
|
||||
const inputString = core.getInput(name, {required: false})
|
||||
if (inputString.length === 0) {
|
||||
return null
|
||||
}
|
||||
return inputString
|
||||
}
|
||||
Reference in New Issue
Block a user