1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

try another approach for multi-line json in an output

This commit is contained in:
Ross McFarland
2023-10-07 09:25:23 -07:00
parent 97d525df5b
commit 973fbd601e

View File

@@ -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<<EOF'
cat ./.python-versions.json
echo EOF
} >> $GITHUB_OUTPUT
ci:
needs: config
runs-on: ubuntu-latest