build(deps): bump actions/upload-artifact from 4 to 6 #59
This file contains hidden or 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: 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 |