mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-19 11:27:08 +00:00
fix: use @actions/exec to execute docker child process
This commit is contained in:
parent
23c4b5f227
commit
b435cadb65
4 changed files with 47 additions and 19 deletions
13
src/index.ts
13
src/index.ts
|
|
@ -2,11 +2,14 @@ import * as core from '@actions/core';
|
|||
import Input from './input';
|
||||
import Renovate from './renovate';
|
||||
|
||||
try {
|
||||
function run(): Promise<void> {
|
||||
const input = new Input();
|
||||
const renovate = new Renovate(input.configurationFile, input.token);
|
||||
renovate.runDockerContainer();
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
core.setFailed(error.message);
|
||||
|
||||
return renovate.runDockerContainer();
|
||||
}
|
||||
|
||||
run().catch((error) => {
|
||||
console.error(error);
|
||||
core.setFailed(error.message);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue