diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c30f28..302eb2e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,4 +17,4 @@ jobs: server: ${{ secrets.rcon_server }} port: ${{ secrets.rcon_port }} password: ${{ secrets.rcon_password }} - commands: ["say hi", "reload"] + commands: '["say hi", "reload"]' diff --git a/index.js b/index.js index 4152efa..facb15e 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ async function run() { server: core.getInput("server"), port: core.getInput("port"), password: core.getInput("password"), - commands: core.getInput("commands"), + commands: JSON.parse(core.getInput("commands")), sendPushInfo: core.getInput("send-push-info"), pushInfoRecipient: core.getInput("push-info-recipient"), }