Skip to content

Update The Planet #31547

Update The Planet

Update The Planet #31547

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'