mirror of
https://github.com/actions/labeler.git
synced 2026-01-02 17:47:18 +08:00
Bump actions/github to 2.2.0 to support GHES (#72)
* Bumping actions/github to 2.2.0 * Husky commit correct node modules
This commit is contained in:
@@ -96,6 +96,13 @@ async function fetchContent(
|
||||
ref: github.context.sha
|
||||
});
|
||||
|
||||
if (!('content' in response.data)) {
|
||||
throw new Error(`The path '${repoPath}' is not a file`);
|
||||
}
|
||||
if (!response.data.content) {
|
||||
throw new Error(`The file '${repoPath}' has no content`);
|
||||
}
|
||||
|
||||
return Buffer.from(response.data.content, 'base64').toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user