Skip to content

Commit df57d5c

Browse files
aeswibontuunit
andauthored
fix(workflow): add empty commit if no activity has been detected for over 50 days (#115)
* fix(workflow): added empty commit function * fix(workflow): optimize error handling * fix(workflow): add debug for difference in days and remove unprocessed options * fix(workflow): updated empty commit function * fix(workflow): fix variable resolution --------- Co-authored-by: tuunit <[email protected]>
1 parent a38649b commit df57d5c

File tree

7 files changed

+19894
-19806
lines changed

7 files changed

+19894
-19806
lines changed

.github/workflows/node.js.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v3
13-
- name: Use Node 16
14-
uses: actions/setup-node@v3
12+
- uses: actions/checkout@v4
13+
- name: Use Node 20
14+
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

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ You can find an example [here](https://github.com/jamesgeorge007/jamesgeorge007/
4949

5050
Use the following `input params` to customize it for your use case:-
5151

52-
| Input Param | Default Value | Description |
53-
| -------------- | ----------------------------------------------------- | --------------------------------------------------------- |
54-
| `GH_USERNAME` | Your GitHub username | Username for which to generate the activity overview |
55-
| `COMMIT_NAME` | github-actions[bot] | Name of the committer |
56-
| `COMMIT_EMAIL` | 41898282+github-actions[bot]@users.noreply.github.com | Email of the committer |
57-
| `COMMIT_MSG` | :zap: Update README with the recent activity | Commit message used while committing to the repo |
58-
| `MAX_LINES` | 5 | The maximum number of lines populated in your readme file |
59-
| `TARGET_FILE` | README.md | The file to insert recent activity into |
52+
| Input Param | Default Value | Description |
53+
| ------------------ | ------------------------------------------------------------------------ | --------------------------------------------------------- |
54+
| `GH_USERNAME` | Your GitHub username | Username for which to generate the activity overview |
55+
| `COMMIT_NAME` | github-actions[bot] | Name of the committer |
56+
| `COMMIT_EMAIL` | 41898282+github-actions[bot]@users.noreply.github.com | Email of the committer |
57+
| `COMMIT_MSG` | :zap: Update README with the recent activity | Commit message used while committing to the repo |
58+
| `EMPTY_COMMIT_MSG` | :memo: empty commit to keep workflow active after 60 days of no activity | Commit message used when there are no updates |
59+
| `MAX_LINES` | 5 | The maximum number of lines populated in your readme file |
60+
| `TARGET_FILE` | README.md | The file to insert recent activity into |
6061

6162
```yml
6263
name: Update README

action.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,14 @@ inputs:
2727
description: "The file location to write changes to"
2828
default: "README.md"
2929
required: false
30+
EMPTY_COMMIT_MSG:
31+
description: "Commit message used when there are no updates"
32+
default: ":memo: empty commit to keep workflow active after 60 days of no activity"
33+
required: false
3034
branding:
3135
color: yellow
3236
icon: activity
3337

3438
runs:
35-
using: node16
39+
using: node20
3640
main: dist/index.js

0 commit comments

Comments
 (0)