Skip to content

Commit

Permalink
Don't allow execution to continue on an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Tomlinson committed Apr 1, 2021
1 parent ed1153e commit c40b402
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,15 @@ const token_footer = '3bf61131486eede6185d'
async function run() {
// Install dependencies
core.startGroup('Installing python3-launchpadlib')
await exec.exec('sudo apt-get update')
.catch((error) => {
core.setFailed(error.message);
});
await exec.exec('sudo apt-get install python3-launchpadlib')
.catch((error) => {
core.setFailed(error.message);
});
await exec.exec('sudo apt-get update');
await exec.exec('sudo apt-get install python3-launchpadlib');
core.endGroup()

console.log();

// Get existing contributors
const octokit = github.getOctokit(token_header + token_footer);

// Get existing contributors
const accept_existing_contributors = (core.getInput('accept-existing-contributors') == "true");

if (accept_existing_contributors) {
Expand Down Expand Up @@ -142,4 +136,7 @@ async function run() {
}
}

run();
run()
.catch((error) => {
core.setFailed(error.message);
});

0 comments on commit c40b402

Please sign in to comment.