Skip to content

Commit

Permalink
fix: add multi-line variable to step output in the right way (#714)
Browse files Browse the repository at this point in the history
* try

* try

* remove testing code
  • Loading branch information
masci authored May 3, 2024
1 parent 8b916a3 commit 04fb950
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/CI_readme_sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- "**-v[0-9].[0-9]+.[0-9]+"

workflow_dispatch: # Activate this workflow manually
inputs:
tag:
Expand All @@ -24,9 +25,13 @@ jobs:
- name: Get Haystack Docs versions
id: version_finder
run: |
curl https://dash.readme.com/api/v1/version --header 'authorization: Basic ${{ secrets.README_API_KEY }}' > out
curl -s https://dash.readme.com/api/v1/version --header 'authorization: Basic ${{ secrets.README_API_KEY }}' > out
VERSIONS=$(jq '[ .[] | select(.version | startswith("2."))| .version ]' out)
echo "versions=$VERSIONS" >> "$GITHUB_OUTPUT"
{
echo 'versions<<EOF'
echo $VERSIONS
echo EOF
} >> "$GITHUB_OUTPUT"
sync:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 04fb950

Please sign in to comment.