Skip to content

build(deps): bump actions/upload-artifact from 4 to 6 #59

build(deps): bump actions/upload-artifact from 4 to 6

build(deps): bump actions/upload-artifact from 4 to 6 #59

name: Notify Discord on PR
on:
pull_request:
types: [opened, ready_for_review]
workflow_dispatch:
inputs:
pr_title:
description: "Pull Request Title"
required: true
pr_url:
description: "Pull Request URL"
required: true
pr_author:
description: "Pull Request Author"
required: true
repo_name:
description: "Repository Name"
required: true
jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.9"
- name: Install dependencies
run: pip install requests
- name: Notify Discord
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
DISCORD_MAP: ${{ secrets.DISCORD_MAP }}
PR_TITLE: ${{ github.event.pull_request.title || inputs.pr_title }}
PR_URL: ${{ github.event.pull_request.html_url || inputs.pr_url }}
PR_AUTHOR: ${{ github.actor || inputs.pr_author }}
REPO_NAME: ${{ github.repository || inputs.repo_name }}
run: python .github/scripts/notify_discord.py