diff --git a/action.yml b/action.yml index eccb6be..8dc8895 100644 --- a/action.yml +++ b/action.yml @@ -12,3 +12,7 @@ inputs: description: "Will not delete any existing labels and will only modify / create them" required: false default: false + config: + description: "Path of the labels json" + required: false + default: .github diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..3541ceb Binary files /dev/null and b/bun.lockb differ diff --git a/index.js b/index.js index ac43651..66c02e6 100644 --- a/index.js +++ b/index.js @@ -9,8 +9,8 @@ const octokit = github.getOctokit(accessToken); async function run() { let newLabelsUrl = path.join( process.env["GITHUB_WORKSPACE"], - ".github", - "labels.json" + core.getInput("config"), + "labels.json", ); if (!core.getBooleanInput("delete")) {