From b6c96d53fca8a53686c618a518028f772b31b814 Mon Sep 17 00:00:00 2001 From: Madison Swain-Bowden Date: Wed, 24 Jan 2024 17:57:26 -0800 Subject: [PATCH] Do not use unsupported folded chomping multiline YAML block syntax --- .github/workflows/pr_limit_reminders.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pr_limit_reminders.yml b/.github/workflows/pr_limit_reminders.yml index af4e700249c..4ef4dadb826 100644 --- a/.github/workflows/pr_limit_reminders.yml +++ b/.github/workflows/pr_limit_reminders.yml @@ -42,19 +42,11 @@ jobs: id: slack uses: slackapi/slack-github-action@v1.24.0 with: - # The JSON below looks malformed, with an invalid multiline string, but YAML's `>` - # construct replaces linebreaks with a space, so the multiline string below will end - # up as a single-line string. The payload will be `{ "user": "...", "message": "..." } - payload: > + # Note: We cannot use the YAML folded chomping block syntax here (`>`) because + # GitHub Actions does not support it (they only support a subset of YAML): + # https://github.com/actions/runner/issues/418#issuecomment-612928525 + payload: | { "user": "${{ env.slack_id }}", - "message": - "Hi, Opener! \n - You currently have ${{ env.pr_count }} Pull Request(s) open with requested - reviews (totalling ${{ env.required_review_count }} required reviews). \n - To help ease the review burden, increase review velocity for older PRs, and - improve the equitable distribution of project maintenance tasks across the team, - please consider reviewing this list of ways to contribute instead of working on - new code contributions: \n - https://docs.openverse.org/meta/maintainer_tasks.html" + "message": "Hi, Opener! \n You currently have ${{ env.pr_count }} Pull Request(s) open with requested reviews (totalling ${{ env.required_review_count }} required reviews). \n To help ease the review burden, increase review velocity for older PRs, and improve the equitable distribution of project maintenance tasks across the team, please consider reviewing this list of ways to contribute instead of working on new code contributions: \n https://docs.openverse.org/meta/maintainer_tasks.html" }