-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (36 loc) · 1.11 KB
/
update-the-planet.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
name: Update The Planet
on:
pull_request:
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '*/60 * * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v4.1.0
with:
ref: master
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Set up git repository
run: |
git status
git branch
# https://github.com/actions/checkout#push-a-commit-using-the-built-in-token
git config user.name "macbrebot"
git config user.email "<51094006+macbrebot@users.noreply.github.com>"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Update The Planet
run: make
- name: Commit changes
run: |
git diff
git add docs
( git commit -m 'Updating the Planet via GitHub Actions' && git push origin master ) || echo 'Nothing to commit'