Update error message, set permissions in the workflow

This commit is contained in:
MaksimZhukov
2021-05-24 17:14:28 +03:00
parent 827de551fd
commit ead7541b7c
5 changed files with 15 additions and 8 deletions

4
dist/index.js vendored
View File

@ -42,7 +42,7 @@ async function findTag(tag, octokitClient) {
return null;
}
else {
throw err;
throw new Error(`Retrieving refs failed with the following error: ${err}`);
}
}
}
@ -68,7 +68,7 @@ async function validateIfReleaseIsPublished(tag, octokitClient) {
throw new Error(`No GitHub release found for the ${tag} tag`);
}
else {
throw err;
throw new Error(`Retrieving releases failed with the following error: ${err}`);
}
}
}