mirror of
https://github.com/renovatebot/github-action.git
synced 2025-12-17 01:12:35 +00:00
fix(refactor): use named imports (#879)
Allows better tree shaking while bundling.
This commit is contained in:
parent
5343762d53
commit
4d91b7f286
7 changed files with 77 additions and 36 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import * as core from '@actions/core';
|
||||
import Input from './input';
|
||||
import Renovate from './renovate';
|
||||
import { Input } from './input';
|
||||
import { Renovate } from './renovate';
|
||||
import { setFailed } from '@actions/core';
|
||||
|
||||
async function run(): Promise<void> {
|
||||
try {
|
||||
|
|
@ -10,7 +10,7 @@ async function run(): Promise<void> {
|
|||
await renovate.runDockerContainer();
|
||||
} catch (error) {
|
||||
console.error(error);
|
||||
core.setFailed(error as Error);
|
||||
setFailed(error as Error);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue