Skip to content

Commit

Permalink
fix: handle breaking syntax in pr body (#9368)
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Krick <matt.krick@gmail.com>
  • Loading branch information
mattkrick committed Jan 19, 2024
1 parent 34342a9 commit 310659e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/release-to-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
uses: actions/checkout@v3
- name: Get Job ID from PR
run: |
JOB_ID=$(echo ${{ github.event.pull_request.body}} | perl -ne 'print "$1\n" and exit if m/^Production Job Id:\s(\w+)/;')
cat > BODY <<'EOF'
${{ github.event.pull_request.body}}
EOF
JOB_ID=$(cat BODY | perl -ne 'print "$1\n" and exit if m/Production Job Id:\s(\w+)/;')
echo "JOB_ID=${JOB_ID}" >> $GITHUB_ENV
- name: Push to Production Server
uses: nick-fields/retry@v2
Expand Down

0 comments on commit 310659e

Please sign in to comment.