Fix failing CI #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Discuss "help-wanted" issue on Discord | |
on: | |
issues: | |
types: | |
- labeled | |
workflow_dispatch: | |
inputs: | |
issue_number: | |
description: 'Issue number' | |
required: true | |
permissions: | |
issues: write | |
jobs: | |
discord: | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Discuss on Discord-Issues" | |
if: ${{ github.event.label.name == 'help wanted' }} | |
uses: EndBug/[email protected] | |
with: | |
discord_bot_token: ${{ secrets.DISCORD_BOT_TOKEN }} | |
destination: ${{ secrets.DISCORD_BOT_DESTINATION }} | |
issue_number: ${{ github.event.inputs.issue_number || github.event.issue.number }} | |
issue_comment: Hey 👋, I've just created a [thread]($THREAD_LINK$) for this issue on [PyTorch-Ignite Discord](https://pytorch-ignite.ai/chat) where you can quickly talk to the community on the topic. | |
discord_message: New issue created in `${{ github.repository }}`:<https://github.com/${{ github.repository }}/issues/${{ github.event.issue.number }}> | |