-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (43 loc) · 1.2 KB
/
monkeytype-logo.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Generate Monkeytype Logo
on:
schedule:
- cron: "0 */24 * * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install playwright
pip install beautifulsoup4
pip install requests
- name: Install playwright
run: |
playwright install
- name: Run monkeytype-logo.py
run: python monkeytype-logo.py
- name: Configure git
run: |
git config --global user.name github-actions
git config --global user.email github-actions[bot]@users.noreply.github.com
- name: Commit and push changes
run: |
if git diff-index --quiet HEAD --; then
echo "No changes detected."
else
git add .
git commit -m "chore: update monkeytype logo"
fi
continue-on-error: true
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}