From 3d3979c33b3a17a836087584345b61d43347045f Mon Sep 17 00:00:00 2001 From: barshaul Date: Mon, 12 Feb 2024 09:36:41 +0000 Subject: [PATCH] CI: fixed the ORT workflow to print retrieve licenses list with newlines --- .github/workflows/ort.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ort.yml b/.github/workflows/ort.yml index 89bc1d38b0..ddfd3bb55c 100644 --- a/.github/workflows/ort.yml +++ b/.github/workflows/ort.yml @@ -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<> "$GITHUB_ENV" @@ -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 }}