From e667a0dee689869ee31b465c30017df5b47149ac Mon Sep 17 00:00:00 2001 From: Abhash Kumar Singh Date: Tue, 10 Dec 2024 13:14:13 -0800 Subject: [PATCH] chore: use environment variable in notify new issues script --- .github/workflows/notify_new_issue.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/notify_new_issue.yml b/.github/workflows/notify_new_issue.yml index e81356dc50..35292fb461 100644 --- a/.github/workflows/notify_new_issue.yml +++ b/.github/workflows/notify_new_issue.yml @@ -25,5 +25,7 @@ jobs: env: WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }} ISSUE: ${{toJson(github.event.issue.title)}} + ISSUE_URL: ${{github.event.issue.html_url}} + USER: ${{github.event.issue.user.login}} shell: bash - run: echo $ISSUE | sed 's/[^a-zA-Z0-9 &().,:]//g' | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"{}", "issueUrl":"${{github.event.issue.html_url}}", "user":"${{github.event.issue.user.login}}"}' + run: echo $ISSUE | sed 's/[^a-zA-Z0-9 &().,:]//g' | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"{}", "issueUrl":"'$ISSUE_URL'", "user":"'$USER'"}'