From 2a2b3cf7af42ddbeebd152d5a00650864837c8b8 Mon Sep 17 00:00:00 2001 From: jfrery Date: Mon, 2 Oct 2023 17:39:20 +0200 Subject: [PATCH] chore: fix open pr step --- .github/workflows/refresh-notebooks.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/refresh-notebooks.yaml b/.github/workflows/refresh-notebooks.yaml index 330ff73fd..5c9adb8f9 100644 --- a/.github/workflows/refresh-notebooks.yaml +++ b/.github/workflows/refresh-notebooks.yaml @@ -92,11 +92,11 @@ jobs: - name: Prepare PR Body run: | - SUCCESSFUL_NOTEBOOKS=$(cat ./successful_notebooks.txt) - FAILED_NOTEBOOKS=$(cat ./failed_notebooks.txt) - PR_BODY="Automatic PR with notebook refresh for ${{ github.ref_name }}.\n" - PR_BODY+="## Successful Notebooks\n$SUCCESSFUL_NOTEBOOKS\n" - PR_BODY+="## Failed Notebooks\n$FAILED_NOTEBOOKS" + SUCCESSFUL_NOTEBOOKS=$(cat ./successful_notebooks.txt | tr '\n' ' ' | sed 's/ /\\n- /g') + FAILED_NOTEBOOKS=$(cat ./failed_notebooks.txt | tr '\n' ' ' | sed 's/ /\\n- /g') + PR_BODY="Automatic PR with notebook refresh for ${{ github.ref_name }}.\\n" + PR_BODY+="## Successful Notebooks\\n- $SUCCESSFUL_NOTEBOOKS\\n" + PR_BODY+="## Failed Notebooks\\n- $FAILED_NOTEBOOKS" echo "PR_BODY=${PR_BODY}" >> "$GITHUB_ENV" - name: Open PR