Skip to content

Commit

Permalink
fix(index): added suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
aeswibon committed Mar 28, 2024
1 parent c48a5dd commit a53b8cf
Show file tree
Hide file tree
Showing 4 changed files with 934 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Use Node 16
- name: Use Node 20
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- run: npm ci
- run: npm run format:check
- run: npm run build
6 changes: 3 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ inputs:
required: false
COMMIT_MSG:
description: "Commit message used while committing to the repo"
default: ":zap: chore(readme): Update README with the recent activity"
default: ":zap: Update README with the recent activity"
required: false
MAX_LINES:
description: "The maximum number of lines populated in your readme file"
Expand All @@ -29,12 +29,12 @@ inputs:
required: false
EMPTY_COMMIT_MSG:
description: "Commit message used when there are no updates"
default: ":memo: chore(readme): dummy commit to keep the repository active"
default: ":memo: empty commit to keep workflow active after 60 days of no activity"
required: false
branding:
color: yellow
icon: activity

runs:
using: node16
using: node20
main: dist/index.js
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,10 @@ const emptyCommit = async () => {
const diffInDays = Math.round(
(new Date() - commitDate) / (1000 * 60 * 60 * 24),
);
if (diffInDays > 50) {
core.info("Doing dummy commit to keep workflow active");
if (diffInDays > 60) {
core.info("Create empty commit to keep workflow active");
await commitFile(true);
tools.exit.success("Dummy commit done");
tools.exit.success("Empty commit pushed.");
}
tools.exit.success(
"No PullRequest/Issue/IssueComment/Release events found. Leaving README unchanged with previous activity",
Expand Down
Loading

0 comments on commit a53b8cf

Please sign in to comment.