forked from WeakAuras/WeakAuras2
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.08 KB
/
discord-update.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Create Discord Name Update Pull Request
on:
schedule:
- cron: "0 10 * * 1"
workflow_dispatch:
jobs:
discordUpdate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
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/[email protected]
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