Skip to content

Commit

Permalink
Merge pull request #4049 from parasharrajat/actions-deployblock
Browse files Browse the repository at this point in the history
[NO QA] fix: action failure on invalid String in BASH
  • Loading branch information
tgolen authored Jul 19, 2021
2 parents f9d0058 + 4f822c0 commit c4a5c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deployBlocker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
run: |
echo "DEPLOY_BLOCKER_URL=${{ github.event.pull_request.html_url }}" >> $GITHUB_ENV
echo "DEPLOY_BLOCKER_NUMBER=${{ github.event.pull_request.number }}" >> $GITHUB_ENV
echo "DEPLOY_BLOCKER_TITLE=${{ github.event.pull_request.title }}" >> $GITHUB_ENV
echo "DEPLOY_BLOCKER_TITLE=$(sed -e "s/'/'\\\\''/g; s/\`/\\\\\`/g; 1s/^/'/; \$s/\$/'/" <<< ${{ github.event.pull_request.title }})" >> $GITHUB_ENV
- name: Update StagingDeployCash with new deploy blocker
uses: Expensify/Expensify.cash/.github/actions/createOrUpdateStagingDeploy@main
Expand All @@ -54,7 +54,7 @@ jobs:
channel: '#deployer',
attachments: [{
color: "#DB4545",
text: '💥 New E.cash Deploy Blocker: <${{ env.DEPLOY_BLOCKER_URL }}|${{ env.DEPLOY_BLOCKER_TITLE }}>',
text: '💥 New E.cash Deploy Blocker: <${{ env.DEPLOY_BLOCKER_URL }}|'+ `${{ env.DEPLOY_BLOCKER_TITLE }}`.replace(/(^'|'$)/gi, '').replace(/'\''/gi,'\'') + '>',
}]
}
env:
Expand Down

0 comments on commit c4a5c8b

Please sign in to comment.