Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Sep 25, 2023
1 parent 8eb46bd commit f812321
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ function run(actionInput) {
// Vale output ...
const output = yield exec.getExecOutput(actionInput.exePath, actionInput.args, {
cwd,
ignoreReturnCode: true
ignoreReturnCode: true,
env: {
"PATH": `${process.env["PATH"]}:/home/runner/.local/share/gem/ruby/3.0.0/bin`
}
});
const vale_code = output.exitCode;
const should_fail = core.getInput('fail_on_error');
Expand Down
9 changes: 6 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import * as core from '@actions/core';
import * as exec from '@actions/exec';

import * as path from 'path';

import * as input from './input';



/**
* These environment variables are exposed for GitHub Actions.
*
Expand All @@ -29,7 +29,10 @@ export async function run(actionInput: input.Input): Promise<void> {
actionInput.args,
{
cwd,
ignoreReturnCode: true
ignoreReturnCode: true,
env: {
"PATH": `${process.env["PATH"]}:/home/runner/.local/share/gem/ruby/3.0.0/bin`
}
}
);

Expand Down

0 comments on commit f812321

Please sign in to comment.