Skip to content

Commit

Permalink
chore: use environment variable in notify new issues script
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisabhash committed Dec 10, 2024
1 parent d54a867 commit e667a0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/notify_new_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'"}'

0 comments on commit e667a0d

Please sign in to comment.