From 3058cf8072b0ee6ffc911bd6c189bb15499c3371 Mon Sep 17 00:00:00 2001 From: Pavlo Bashynskiy Date: Mon, 19 Aug 2024 16:56:07 +0300 Subject: [PATCH] Fix droid test run --- .github/workflows/droid.yml | 12 +++++++++--- test/assets/echo.js | 5 ----- 2 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 test/assets/echo.js diff --git a/.github/workflows/droid.yml b/.github/workflows/droid.yml index 22718ab..097974e 100644 --- a/.github/workflows/droid.yml +++ b/.github/workflows/droid.yml @@ -29,17 +29,23 @@ jobs: description: 'true' - if: ${{ steps.c-3po.outputs.is-hello }} - run: node ./test/assets/echo.js env: INPUTS_ARG1: "${{ steps.c-3po.outputs.has-hello }}" INPUTS_ARG2: ", it is you, it Is You!" + with: + script: | + const args = [process.env.INPUTS_ARG1, process.env.INPUTS_ARG2] + core.info(args.join('')) - if: ${{ steps.c-3po.outputs.is-chances && steps.c-3po.outputs.has-chances-survival }} - run: node ./test/assets/echo.js" env: - INPUTS_ARG1: "R2 says the chances of survival are" + INPUTS_ARG1: "R2 says the chances of survival are " INPUTS_ARG2: "${{ steps.c-3po.outputs.has-chances-survival }}" INPUTS_ARG3: "... to one" + with: + script: | + const args = [process.env.INPUTS_ARG1, process.env.INPUTS_ARG2, process.env.INPUTS_ARG3] + core.info(args.join('')) - if: ${{ steps.c-3po.outputs.is-chances && steps.c-3po.outputs.has-chances-win > 0 }} run: echo "We'll take the next chance, and the next." diff --git a/test/assets/echo.js b/test/assets/echo.js deleted file mode 100644 index 675fbb4..0000000 --- a/test/assets/echo.js +++ /dev/null @@ -1,5 +0,0 @@ -const core = require('@actions/core') - -const args = [process.env.INPUTS_ARG1, process.env.INPUTS_ARG2, process.env.INPUTS_ARG3] - -core.info(args.join(' '))