diff options
author | 2021-08-31 22:26:41 -0700 | |
---|---|---|
committer | 2021-08-31 22:26:41 -0700 | |
commit | 2af9b2947241793ad2fe13e760e998736c82b253 (patch) | |
tree | 91ff63a83d432865af6a84ebf5532e190326cb92 | |
parent | 74372a7d269882fe8bbcbf02a85a79296d58668f (diff) | |
download | astro-2af9b2947241793ad2fe13e760e998736c82b253.tar.gz astro-2af9b2947241793ad2fe13e760e998736c82b253.tar.zst astro-2af9b2947241793ad2fe13e760e998736c82b253.zip |
Fix congratsbot multiline issue (#1285)
* testing new congrats bot
if you see this, it did not work yet
* try including multiline message
line 2
line 3
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/congratsbot.yml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/congratsbot.yml b/.github/workflows/congratsbot.yml index f736c1069..2853c2ff9 100644 --- a/.github/workflows/congratsbot.yml +++ b/.github/workflows/congratsbot.yml @@ -11,11 +11,14 @@ jobs: if: github.repository == 'snowpackjs/astro' runs-on: ubuntu-latest steps: + - id: setup + run: | + TRIMMED=$(echo "${{ github.event.commits[0].message }}" | sed '1!d;q') + echo "::set-output name=COMMIT_MSG::${TRIMMED}" - name: Send a Discord notification when a PR is merged - env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_CONGRATS }} # DISCORD_AVATAR: ${{ github.event.pull_request.user.avatar_url }} uses: Ilshidur/action-discord@0.3.2 with: - args: '**Sweet!** <${{ github.event.commits[0].author.name }}> just merged ["${{ github.event.commits[0].message }}"](<https://github.com/snowpackjs/astro/commits/main>)' + args: '**Sweet!** <${{ github.event.commits[0].author.name }}> just merged ["\"${{ steps.setup.outputs.COMMIT_MSG }}\""](<https://github.com/snowpackjs/astro/commits/main>) ```${{ github.event.commits[0].message }}```' |