v4 new release (#232)

This commit is contained in:
github-actions[bot]
2022-08-16 14:53:55 -04:00
committed by GitHub
parent 4e60e959ea
commit bba74ad3b5
34 changed files with 2291 additions and 1283 deletions
+16
View File
@@ -0,0 +1,16 @@
import * as core from '@actions/core'
import {parseAnnotations} from './types/annotations'
export const inputAnnotations = parseAnnotations(
core.getInput('annotations', {required: false})
)
export function getBufferTime(): number {
const inputBufferTime = parseInt(
core.getInput('version-switch-buffer') || '0'
)
if (inputBufferTime < 0 || inputBufferTime > 300)
throw Error('Version switch buffer must be between 0 and 300 (inclusive)')
return inputBufferTime
}