Skip to content

Build README

Build README #267

Workflow file for this run

name: Build README
on:
schedule:
- cron: '0 0 * * *' # at 00:00 everyday
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r python/requirements.txt
- name: Update README
run: |-
python python/create_readme.py
cat README.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
run: |
git config user.name "STAC CI"
git config user.email "[email protected]"
git add -A README.md
timestamp=$(date -u)
git commit -m ":robot: Automated update README: ${timestamp} [skip ci]" || exit 0
git push