mirror of
https://github.com/tj-actions/changed-files
synced 2024-12-18 09:44:46 +00:00
cc733854b1
Co-authored-by: GitHub Action <action@github.com>
13 lines
323 B
TypeScript
13 lines
323 B
TypeScript
export type Env = {
|
|
GITHUB_REF_NAME: string
|
|
GITHUB_REF: string
|
|
GITHUB_WORKSPACE: string
|
|
}
|
|
|
|
export const getEnv = async (): Promise<Env> => {
|
|
return {
|
|
GITHUB_REF_NAME: process.env.GITHUB_REF_NAME || '',
|
|
GITHUB_REF: process.env.GITHUB_REF || '',
|
|
GITHUB_WORKSPACE: process.env.GITHUB_WORKSPACE || ''
|
|
}
|
|
}
|