ci(package-pr): move into different var

This commit is contained in:
Thomas Hobson 2021-02-28 16:13:28 +13:00
parent 88faac0335
commit 792c7c69eb
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 2 additions and 1 deletions

View File

@ -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'}