From 497b2b5ea919cd232bd85c3dd30e3310c87a6d96 Mon Sep 17 00:00:00 2001 From: "Lukas Scheuerle (Plagiatus)" Date: Tue, 16 Mar 2021 00:44:24 +0100 Subject: [PATCH] switch from array to json string array --- .github/workflows/main.yml | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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"), }