Browse Source
try another approach for multi-line json in an output
pull/1084/head
Ross McFarland
2 years ago
No known key found for this signature in database
GPG Key ID: 943B179E15D3B22A
1 changed files with
6 additions and
2 deletions
-
.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<<EOF' |
|
|
|
cat ./.python-versions.json |
|
|
|
echo EOF |
|
|
|
} >> $GITHUB_OUTPUT |
|
|
|
ci: |
|
|
|
needs: config |
|
|
|
runs-on: ubuntu-latest |
|
|
|
|