Skip to content

Commit

Permalink
CI: fixed the ORT workflow to print retrieve licenses list with newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
barshaul committed Feb 12, 2024
1 parent 15157ca commit 3d3979c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,11 @@ jobs:
fi
- name: Retrieve licenses list
if: ${{ env.FOUND_DIFF == 'true'}}
working-directory: ./utils
run: |
list_result=`python3 get_licenses_from_ort.py`
echo $list_result
{
echo 'LICENSES_LIST<<EOF'
echo ${list_result}
python3 get_licenses_from_ort.py
echo EOF
} >> "$GITHUB_ENV"
Expand All @@ -196,6 +193,6 @@ jobs:
git commit -m "Updated attribution files"
git push --set-upstream origin ${BRANCH_NAME} -f
title="Updated attribution files for ${BRANCH_NAME}"
gh pr create -B ${{ env.BASE_BRANCH }} -H ${BRANCH_NAME} --title "${title}" --body 'Created by Github action.\n${{env.LICENSES_LIST}}'
gh pr create -B ${{ env.BASE_BRANCH }} -H ${BRANCH_NAME} --title "${title}" --body 'Created by Github action.\n${{ env.LICENSES_LIST }}'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3d3979c

Please sign in to comment.