-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (35 loc) · 1.09 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
name: Update The Planet
on:
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/[email protected]
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 "<[email protected]>"
- 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'