Solutionunvalidated
Put the title in an environment variable and access that from the shell — jobs: my_job: runs-on: ubuntu-latest env: PR_TITLE: "${{ github.event.pull_request.title }}". Tension: This lets the shell handle the escaping for you. Outcome: printf "the title is: %s\n" "$PR_TITLE".
113e39a6-e026-4248-8cef-9e8b02d7d50e
Put the title in an environment variable and access that from the shell — jobs: my_job: runs-on: ubuntu-latest env: PR_TITLE: "${{ github.event.pull_request.title }}". Tension: This lets the shell handle the escaping for you. Outcome: printf "the title is: %s\n" "$PR_TITLE".