Create Discord Name Update Pull Request #37
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: Create Discord Name Update Pull Request | |
| on: | |
| schedule: | |
| - cron: "0 10 * * 1" | |
| workflow_dispatch: | |
| jobs: | |
| discordUpdate: | |
| if: github.repository == 'WeakAuras/WeakAuras2' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.10' | |
| - name: Install discord pip | |
| run: | | |
| pip install discord.py | |
| shell: bash | |
| - name: Update Discord list | |
| run: | | |
| /usr/bin/env python3 .github/scripts/discordupdate.py | |
| shell: bash | |
| env: | |
| DISCORD_ACCESS_TOKEN: ${{ secrets.DISCORD_ACCESS_TOKEN}} | |
| - name: Save Commit Body in Variable | |
| uses: Stanzilla/cat@2.0.2 | |
| id: readCommitBody | |
| with: | |
| path: commit-body.txt | |
| - name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v6 | |
| with: | |
| branch: update-discordlist | |
| commit-message: Update Discord List | |
| title: Update Discord List | |
| body: ${{ steps.readCommitBody.outputs.text }} | |
| delete-branch: true | |
| add-paths: WeakAuras/DiscordList.lua | |