Skip to content

Commit

Permalink
[skip-ci] Published 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
gkr-bot committed Oct 30, 2022
1 parent 05e9e76 commit 9553d1a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion dist/blog-post-workflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -9947,7 +9947,15 @@ Promise.allSettled(promiseArray).then((results) => {
} else {
jobFailFlag = true;
core.error(runnerNameArray[index] + " runner failed, please verify the configuration. Error:");
core.error(result.reason);
if (result.reason.message.startsWith("Status code")) {
const code = result.reason.message.replace("Status code ", "");
core.error(`Looks like your website returned ${code}, There is nothing blog post workflow can do to fix it. Please check your website's RSS feed generation source code. Also double check the URL.`);
if (code === `503`) {
core.error(`If you are using Cloudflare or Akamai, make sure that you have the user agent ${userAgent} or GitHub actions IP ranges whitelisted in your firewall.`);
}
} else {
core.error(result.reason.message);
}
}
});
}).finally(async () => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blog-post-workflow",
"version": "1.7.9",
"version": "1.8.0",
"description": "Allows you to show your latest blog posts on your github profile or project readme",
"main": "blog-post-workflow.js",
"scripts": {
Expand Down

0 comments on commit 9553d1a

Please sign in to comment.