diff --git a/.github/workflows/package-pr.yaml b/.github/workflows/package-pr.yaml index 6c3bce4..37ee491 100644 --- a/.github/workflows/package-pr.yaml +++ b/.github/workflows/package-pr.yaml @@ -32,7 +32,8 @@ jobs: id: 'get-packages' shell: bash run: | - PACKAGES=$(echo '${{ steps.get-pr-commits.outputs.commits }}' | jq .[].commit.message -r | grep -oP '^pkg\(\K[^:\h\n]+(?=\))'' | sort -u | sed 's/^/* /') + COMMITS='${{ steps.get-pr-commits.outputs.commits }}' + PACKAGES=$(echo $COMMITS | jq .[].commit.message -r | grep -oP '^pkg\(\K[^:\h\n]+(?=\))'' | sort -u | sed 's/^/* /') PACKAGES=${PACKAGES//$'%'/'%25'} PACKAGES=${PACKAGES//$'\n'/'%0A'} PACKAGES=${PACKAGES//$'\r'/'%0D'}