mirror of
https://github.com/actions/github-script.git
synced 2026-04-08 07:00:05 +00:00
Added error handling
This commit is contained in:
parent
2a9db83c42
commit
085e38d2d3
2 changed files with 31 additions and 8 deletions
20
dist/index.js
vendored
20
dist/index.js
vendored
|
|
@ -13636,10 +13636,22 @@ class se_Helper {
|
|||
createMetaJson(root) {
|
||||
const execSync = external_child_process_.execSync;
|
||||
console.log('Run number: ' + this.currentBuild.runNumber);
|
||||
const xmllint = execSync('sudo apt install libxml2-utils', {
|
||||
shell: '/bin/bash'
|
||||
});
|
||||
console.log(xmllint.toString());
|
||||
try {
|
||||
const xmllint = execSync('sudo apt install libxml2-utils', {
|
||||
shell: '/bin/bash'
|
||||
});
|
||||
console.log(xmllint.toString());
|
||||
}
|
||||
catch (err) {
|
||||
let message;
|
||||
if (err instanceof Error) {
|
||||
message = err.message;
|
||||
}
|
||||
else {
|
||||
message = String(err);
|
||||
}
|
||||
console.log(message);
|
||||
}
|
||||
const ret = [];
|
||||
const poms = this.listPoms(root);
|
||||
const ownersFile = Object(external_fs_.readFileSync)(root + '.github/CODEOWNERS', 'utf8')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue