File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -31519,6 +31519,7 @@ var acceptHeader = core.getInput("accept_header");
31519
31519
var TOTAL_POST_COUNT = Number.parseInt(core.getInput("max_post_count"));
31520
31520
var ENABLE_SORT = core.getInput("disable_sort") === "false";
31521
31521
var SORT_ORDER = core.getInput("sort_order");
31522
+ var REVERSE_ORDER = core.getInput("reverse_order") !== "false";
31522
31523
var ENABLE_VALIDATION = core.getInput("disable_item_validation") === "false";
31523
31524
var TITLE_MAX_LENGTH = core.getInput("title_max_length") ? Number.parseInt(core.getInput("title_max_length")) : null;
31524
31525
var DESCRIPTION_MAX_LENGTH = core.getInput("description_max_length") ? Number.parseInt(core.getInput("description_max_length")) : null;
@@ -31694,6 +31695,8 @@ var runWorkflow = async () => {
31694
31695
return b.date - a.date;
31695
31696
}
31696
31697
});
31698
+ } else if (REVERSE_ORDER) {
31699
+ postsArray.reverse();
31697
31700
}
31698
31701
postsArray = postsArray.slice(0, TOTAL_POST_COUNT);
31699
31702
if (postsArray.length > 0) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " blog-post-workflow" ,
3
- "version" : " 1.9.2 " ,
3
+ "version" : " 1.9.3 " ,
4
4
"description" : " Allows you to show your latest blog posts on your github profile or project readme" ,
5
5
"main" : " blog-post-workflow.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments