mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-11 05:27:24 +00:00
17 lines
440 B
TypeScript
17 lines
440 B
TypeScript
const core = require('@actions/core');
|
|
const exec = require('@actions/exec');
|
|
|
|
import buildExec from './buildExec';
|
|
|
|
const {execArgs, options, failCi} = buildExec();
|
|
|
|
exec.exec('bash', execArgs, options)
|
|
.catch((err) => {
|
|
if (failCi) {
|
|
core.setFailed(
|
|
`Codecov failed with the following error: ${err.message}`,
|
|
);
|
|
} else {
|
|
core.warning(`Codecov warning: ${err.message}`);
|
|
}
|
|
});
|