Skip to content

Commit

Permalink
add input to action.yml, change to use - instead of _
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesclark-Zapata committed Apr 20, 2024
1 parent dd49472 commit 14997bf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
command: pwd
template: "Testing working_dir\n```\n%stdout%\n```"
update-text: "Testing working_dir"
working_dir: sub_dir
working-dir: sub_dir
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ inputs:
update-text:
description: Updates the comment with this text instead of creating a new one
required: False
working-dir:
description: Working directory relative to the repository root
default: "."
required: false
github-token:
description: Uses this token with the Github client
default: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const sanitize = require("path-sanitizer");
// most @actions toolkit packages have async methods
async function run() {
const cmd = core.getInput("command");
const workingDirectory = core.getInput("working_directory");
const workingDirectory = core.getInput("working-directory");
const messageTemplate = core.getInput("template");
const updateText = core.getInput("update-text");
const githubToken = core.getInput("github-token");
Expand Down

0 comments on commit 14997bf

Please sign in to comment.