Skip to content

Commit

Permalink
Fixes naughtiness of slack notification gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
vkWeb committed Feb 26, 2024
1 parent bb24ff2 commit ea922d3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/notify_team_new_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Escape title double quotes
id: escape_title
run: |
echo "ISSUE_TITLE=${{ toJSON(github.event.issue.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/slack-github-action@v1.25.0
with:
payload: |
{
"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 }}>*"
"text": "*[Kolibri] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|$ISSUE_TITLE by ${{ github.event.comment.user.login }}>*"
}

0 comments on commit ea922d3

Please sign in to comment.