Skip to content

Commit eba05ad

Browse files
committed
[skip-ci] Published 1.9.3
1 parent 0b6f033 commit eba05ad

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dist/blog-post-workflow.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31519,6 +31519,7 @@ var acceptHeader = core.getInput("accept_header");
3151931519
var TOTAL_POST_COUNT = Number.parseInt(core.getInput("max_post_count"));
3152031520
var ENABLE_SORT = core.getInput("disable_sort") === "false";
3152131521
var SORT_ORDER = core.getInput("sort_order");
31522+
var REVERSE_ORDER = core.getInput("reverse_order") !== "false";
3152231523
var ENABLE_VALIDATION = core.getInput("disable_item_validation") === "false";
3152331524
var TITLE_MAX_LENGTH = core.getInput("title_max_length") ? Number.parseInt(core.getInput("title_max_length")) : null;
3152431525
var DESCRIPTION_MAX_LENGTH = core.getInput("description_max_length") ? Number.parseInt(core.getInput("description_max_length")) : null;
@@ -31694,6 +31695,8 @@ var runWorkflow = async () => {
3169431695
return b.date - a.date;
3169531696
}
3169631697
});
31698+
} else if (REVERSE_ORDER) {
31699+
postsArray.reverse();
3169731700
}
3169831701
postsArray = postsArray.slice(0, TOTAL_POST_COUNT);
3169931702
if (postsArray.length > 0) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "blog-post-workflow",
3-
"version": "1.9.2",
3+
"version": "1.9.3",
44
"description": "Allows you to show your latest blog posts on your github profile or project readme",
55
"main": "blog-post-workflow.js",
66
"scripts": {

0 commit comments

Comments
 (0)