File tree Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Expand file tree Collapse file tree 4 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,15 @@ Please note that only those public events that belong to the following list show
44
44
45
45
You can find an example [here](https://github.com/jamesgeorge007/jamesgeorge007/blob/master/.github/workflows/update-readme.yml).
46
46
47
- # ## Custom commit message
47
+ # ## Override defaults
48
+
49
+ Use the following `input params` to customize it for your use case:-
50
+
51
+ | Input Param | Default Value | Description |
52
+ |--------|--------|--------|
53
+ | `COMMIT_MSG` | :zap : Update README with the recent activity | Commit message used while committing to the repo |
54
+ | `MAX_LINES` | 5 | The maximum number of lines populated in your readme file |
48
55
49
- Specify a custom commit message with the `COMMIT_MSG` input param.
50
56
51
57
` ` ` yml
52
58
name: Update README
68
74
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69
75
with:
70
76
COMMIT_MSG: 'Specify a custom commit message'
77
+ MAX_LINES: 10
71
78
` ` `
72
79
73
80
_Inspired by [JasonEtco/activity-box](https://github.com/JasonEtco/activity-box)_
Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
11
11
description : " Commit message used while committing to the repo"
12
12
default : " :zap: Update README with the recent activity"
13
13
required : false
14
+ MAX_LINES :
15
+ description : " The maximum number of lines populated in your readme file"
16
+ default : 5
17
+ required : false
14
18
15
19
branding :
16
20
color : yellow
Original file line number Diff line number Diff line change @@ -1479,11 +1479,10 @@ const path = __webpack_require__(622);
1479
1479
const { spawn } = __webpack_require__ ( 129 ) ;
1480
1480
const { Toolkit } = __webpack_require__ ( 461 ) ;
1481
1481
1482
- const MAX_LINES = 5 ;
1483
-
1484
1482
// Get config
1485
1483
const GH_USERNAME = core . getInput ( "GH_USERNAME" ) ;
1486
1484
const COMMIT_MSG = core . getInput ( "COMMIT_MSG" ) ;
1485
+ const MAX_LINES = core . getInput ( "MAX_LINES" ) ;
1487
1486
/**
1488
1487
* Returns the sentence case representation
1489
1488
* @param {String } str - the string
Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ const path = require("path");
4
4
const { spawn } = require ( "child_process" ) ;
5
5
const { Toolkit } = require ( "actions-toolkit" ) ;
6
6
7
- const MAX_LINES = 5 ;
8
-
9
7
// Get config
10
8
const GH_USERNAME = core . getInput ( "GH_USERNAME" ) ;
11
9
const COMMIT_MSG = core . getInput ( "COMMIT_MSG" ) ;
10
+ const MAX_LINES = core . getInput ( "MAX_LINES" ) ;
12
11
/**
13
12
* Returns the sentence case representation
14
13
* @param {String } str - the string
You can’t perform that action at this time.
0 commit comments