Skip to content

Commit dff3247

Browse files
committed
chore: refine input name and description
1 parent 76f22dd commit dff3247

File tree

5 files changed

+11
-13
lines changed

5 files changed

+11
-13
lines changed

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ inputs:
99
root-dir:
1010
description: Directory root for where to begin recursively searching for projects. Python projects contained in this directory or lower will be discovered.
1111
required: false
12-
default: '.'
13-
desired-export-paths:
14-
description: What TOML keys to export. Comma separated list.
12+
default: "."
13+
additional-export-paths:
14+
description: Additional TOML keys to export as part of the projects object. Specify them as json path strings, separated by commas. For example, "tool.upside.foo,bar.baz".
1515
required: false
16-
default: ''
16+
default: ""
1717

1818
outputs:
1919
paths:
@@ -29,5 +29,5 @@ outputs:
2929
description: JSON array of all found projects (`project` object) that implement a `package` command
3030

3131
runs:
32-
using: 'node20'
33-
main: 'dist/index.js'
32+
using: "node20"
33+
main: "dist/index.js"

dist/index.js

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

find-python-projects.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
async function run() {
1616
try {
1717
const rootDir = core.getInput("root-dir");
18-
const desiredExportPathsRaw = core.getInput("desired-export-paths");
18+
const desiredExportPathsRaw = core.getInput("additional-export-paths");
1919
const desiredExportPaths =
2020
desiredExportPathsRaw === "" ? null : desiredExportPathsRaw.split(",");
2121

find-python-projects.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe("find-python-projects", () => {
1010
const setOutputMock = jest.spyOn(core, "setOutput").mockImplementation();
1111

1212
const inputsDefaults = {
13-
"desired-export-paths": "",
13+
"additional-export-paths": "",
1414
};
1515
let inputs = {};
1616
let outputs = {};
@@ -46,7 +46,7 @@ describe("find-python-projects", () => {
4646
});
4747

4848
it("Exports keys as instructed", async () => {
49-
inputs["desired-export-paths"] = "tool.export.me.please,what";
49+
inputs["additional-export-paths"] = "tool.export.me.please,not.present";
5050
inputs["root-dir"] = "test-fixtures/project-with-exports";
5151
await run();
5252
expect(deserializeJsonValues(outputs)).toMatchSnapshot();

0 commit comments

Comments
 (0)