Skip to content

Commit

Permalink
Merge pull request #11928 from MisRob/fix-notify-action-2
Browse files Browse the repository at this point in the history
Attempt to fix GH notification action
  • Loading branch information
rtibbles committed Mar 1, 2024
2 parents fd96c98 + 0c8a0b5 commit 4dae628
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/notify_team_new_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Escape title double quotes
id: escape_title
run: |
title=${{ github.event.issue.title }}
echo "ISSUE_TITLE=${title//\"/\\\"}" >> "$GITHUB_OUTPUT"
- name: Send message to Slack channel
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
ISSUE_TITLE: ${{ toJSON(github.event.issue.title) }}
uses: slackapi/[email protected]
with:
payload: |
{
"text": "*[Kolibri] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|$ISSUE_TITLE by ${{ github.event.comment.user.login }}>*"
"text": "*[Kolibri] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|${{ steps.escape_title.outputs.ISSUE_TITLE }} by ${{ github.event.comment.user.login }}>*"
}

0 comments on commit 4dae628

Please sign in to comment.