Skip to content

Commit

Permalink
Merge pull request #1635 from redwoodjs/dsp-pr-package-action-formatting
Browse files Browse the repository at this point in the history
update PR Package Action formatting
  • Loading branch information
Tobbe authored Jan 13, 2021
2 parents 49d6dba + 53319f0 commit dbbf00c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish_pr_packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,17 @@ jobs:
pr_number=${{ steps.pr_number.outputs.pr_number }}
cd pr-packages/$pr_number
v_sha=$(ls | grep "\.tgz$" | sed 's/\.tgz$//' | head -n1 | awk -F"-" '{ print $(NF-1)"-"$NF }')
msg="📦 Packages for this PR can be downloaded from%0A"
msg="### 📦 PR Packages%0A"
msg+="%0A"
msg+="<details><summary>Click to Show Package Download Links</summary>"
msg+="%0A"
for p in *; do
msg+="https://rw-pr-redwoodjs-com.s3.amazonaws.com/$pr_number/$p%0A"
done
msg+="%0AInstall this PR by running \`yarn rw upgrade --pr $pr_number:$v_sha\`"
msg+="%0A"
msg+="</details>"
msg+="%0A"
msg+="Install this PR by running \`yarn rw upgrade --pr $pr_number:$v_sha\`"
echo "::set-output name=msg::$msg"
- name: Find Comment
Expand Down

0 comments on commit dbbf00c

Please sign in to comment.