-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 945 Bytes
/
bot.yml
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
name: Run Utility Bot
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "utilitybot.py"
schedule:
- cron: "13 1/3 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
activate:
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, '[no-update]') }}
steps:
- name: Checkout repo content
uses: actions/[email protected] # checkout the repository content
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # install the python version needed
- name: Install required Python packages
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r requirements.txt
- name: Activate Utility Bot # run utilitybot.py
run: python3 utilitybot.py ${{ secrets.BOT_EMAIL }} ${{ secrets.BOT_PASSWORD }}