Skip to content

Commit 41a2d54

Browse files
committed
fix(index): added suggestion
1 parent c48a5dd commit 41a2d54

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @tuunit @jamesgeorge007

.github/workflows/node.js.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Use Node 16
13+
- name: Use Node 20
1414
uses: actions/setup-node@v4
1515
with:
16-
node-version: 16
16+
node-version: 20
1717
- run: npm ci
1818
- run: npm run format:check
1919
- run: npm run build

action.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ inputs:
1717
required: false
1818
COMMIT_MSG:
1919
description: "Commit message used while committing to the repo"
20-
default: ":zap: chore(readme): Update README with the recent activity"
20+
default: ":zap: Update README with the recent activity"
2121
required: false
2222
MAX_LINES:
2323
description: "The maximum number of lines populated in your readme file"
@@ -29,7 +29,7 @@ inputs:
2929
required: false
3030
EMPTY_COMMIT_MSG:
3131
description: "Commit message used when there are no updates"
32-
default: ":memo: chore(readme): dummy commit to keep the repository active"
32+
default: ":memo: empty commit to keep workflow active after 60 days of no activity"
3333
required: false
3434
branding:
3535
color: yellow

index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ const emptyCommit = async () => {
117117
const diffInDays = Math.round(
118118
(new Date() - commitDate) / (1000 * 60 * 60 * 24),
119119
);
120-
if (diffInDays > 50) {
121-
core.info("Doing dummy commit to keep workflow active");
120+
if (diffInDays > 60) {
121+
core.info("Create empty commit to keep workflow active");
122122
await commitFile(true);
123-
tools.exit.success("Dummy commit done");
123+
tools.exit.success("Empty commit pushed.");
124124
}
125125
tools.exit.success(
126126
"No PullRequest/Issue/IssueComment/Release events found. Leaving README unchanged with previous activity",

0 commit comments

Comments
 (0)