Skip to content

Commit 5f73dd3

Browse files
fix: Topics are now space-separated
1 parent e992c26 commit 5f73dd3

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/test-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ jobs:
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 }}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ runs:
55
main: "dist/index.js"
66
inputs:
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'

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9232,7 +9232,7 @@ exports.getTopicsFromInput = void 0;
92329232
const core = __importStar(__nccwpck_require__(2186));
92339233
const topicsInput = "topics";
92349234
function parseTopicsStr(str) {
9235-
return str.split(",").map((s) => s.trim());
9235+
return str.split(" ").map((s) => s.trim());
92369236
}
92379237
function getTopicsFromInput() {
92389238
const topicsStr = core.getInput(topicsInput);

src/topics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as core from "@actions/core";
33
const topicsInput = "topics";
44

55
function parseTopicsStr(str: string): string[] {
6-
return str.split(",").map((s) => s.trim());
6+
return str.split(" ").map((s) => s.trim());
77
}
88

99
export function getTopicsFromInput(): string[] {

0 commit comments

Comments
 (0)