[CORRECTION] <Factual error in "The Crucial Years"> #150
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: GitHub Discord Integration | |
on: | |
issues: | |
types: | |
- opened | |
jobs: | |
send-message: | |
env: | |
ISSUE_TITLE: ${{ github.event.issue.title }} | |
ISSUE_DESCRIPTION: ${{ github.event.issue.body }} | |
ISSUE_AUTHOR: ${{ github.event.issue.user.login }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Send message to Discord channel | |
run: | | |
python3 scripts/discord_integration.py \ | |
--webhook-url "${{ secrets.DISCORD_WEBHOOK }}" \ | |
--issue-number "${{ github.event.issue.number }}" \ | |
--issue-title "$ISSUE_TITLE" \ | |
--issue-description "$ISSUE_DESCRIPTION" \ | |
--author "$ISSUE_AUTHOR" |