Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Do not use unsupported folded chomping multiline YAML block syntax (#3702)

Madison Swain-Bowden81ba0b9c7fdb
diff --git a/.github/workflows/pr_limit_reminders.yml b/.github/workflows/pr_limit_reminders.yml
index af4e70024..4ef4dadb8 100644
--- a/.github/workflows/pr_limit_reminders.yml
+++ b/.github/workflows/pr_limit_reminders.yml
@@ -42,19 +42,11 @@ jobs:
id: slack
uses: slackapi/[email protected]
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"
}