Skip to content

Commit 2da8088

Browse files
authored
switch to env variable
1 parent f467e3d commit 2da8088

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

action.yml

-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ inputs:
88
config:
99
required: true
1010
description: 'Path to the config'
11-
workspace:
12-
required: false
13-
description: 'Path to the root of the workspace'
1411
runs:
1512
using: 'node12'
1613
main: 'dist/index.js'

dist/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import { Schema, Validator } from 'jsonschema';
22
import * as path from 'path';
33

4-
import * as core from '@actions/core';
4+
import { env } from './utils/env';
55

66
import { PROJECT_ROOT } from './constants';
77

88
import { IConfig } from './interfaces/IConfig';
99

1010
const getWorkspacePath = (configFilePath: string) => {
11-
const rootPath = core.getInput('workspace');
11+
const rootPath = env('GITHUB_WORKSPACE');
1212
console.log(`rootPath variable: ${rootPath}`);
1313
if (!rootPath) {
1414
return;

0 commit comments

Comments
 (0)