fix: prefer getMultilineInput and getBooleanInput from actions/core

This commit is contained in:
Sibiraj 2022-02-27 08:25:13 +05:30
parent a7bb76508d
commit 9758f4618e
3 changed files with 8 additions and 31 deletions

View file

@ -2,20 +2,6 @@ import * as core from '@actions/core'
import * as fs from 'fs'
import * as path from 'path'
export function getInputAsArray(
name: string,
options?: core.InputOptions
): string[] {
return getStringAsArray(core.getInput(name, options))
}
export function getStringAsArray(str: string): string[] {
return str
.split(/[\n,]+/)
.map(s => s.trim())
.filter(x => x !== '')
}
export function getRepoPath(relativePath?: string): string {
let githubWorkspacePath = process.env['GITHUB_WORKSPACE']
if (!githubWorkspacePath) {