File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 - name : Test Action
1414 uses : ./ # Uses an action in the root directory
1515 with :
16- topics : " topic 1, topic 2"
16+ topics : " topic-1 topic- 2"
1717 token : ${{ secrets.gh_token }}
Original file line number Diff line number Diff line change 55 main : " dist/index.js"
66inputs :
77 topics :
8- description : ' Comma -separated topics to sync to Github'
8+ description : ' Space -separated topics to sync to Github'
99 required : true
1010 token :
1111 description : ' Github token'
Original file line number Diff line number Diff line change @@ -9232,7 +9232,7 @@ exports.getTopicsFromInput = void 0;
92329232const core = __importStar(__nccwpck_require__(2186));
92339233const topicsInput = "topics";
92349234function parseTopicsStr(str) {
9235- return str.split(", ").map((s) => s.trim());
9235+ return str.split(" ").map((s) => s.trim());
92369236}
92379237function getTopicsFromInput() {
92389238 const topicsStr = core.getInput(topicsInput);
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import * as core from "@actions/core";
33const topicsInput = "topics" ;
44
55function parseTopicsStr ( str : string ) : string [ ] {
6- return str . split ( ", " ) . map ( ( s ) => s . trim ( ) ) ;
6+ return str . split ( " " ) . map ( ( s ) => s . trim ( ) ) ;
77}
88
99export function getTopicsFromInput ( ) : string [ ] {
You can’t perform that action at this time.
0 commit comments