From 973fbd601e08508ce135ad33522cdd66ca24efc7 Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Sat, 7 Oct 2023 09:25:23 -0700 Subject: [PATCH] try another approach for multi-line json in an output --- .github/workflows/main.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 73b0344..36608b1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,9 +9,13 @@ jobs: steps: - uses: actions/checkout@v4 - id: load + # based on https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#multiline-strings run: | - JSON=$(cat ./.python-versions.json) - echo "::set-output name=json::${JSON//'%'/'%25'}" + { + echo 'json<> $GITHUB_OUTPUT ci: needs: config runs-on: ubuntu-latest