mirror of
https://github.com/actions/publish-action.git
synced 2025-12-24 10:53:29 +08:00
Update error message, set permissions in the workflow
This commit is contained in:
4
dist/index.js
vendored
4
dist/index.js
vendored
@@ -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}`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user