Skip to content

Sync latest docs from runfinch/finch #902

Sync latest docs from runfinch/finch

Sync latest docs from runfinch/finch #902

name: Sync latest docs from runfinch/finch
on:
schedule:
# Pull changes every day at 13:00 UTC.
# Eventually switch to using a push based flow with
# https://github.com/peter-evans/repository-dispatch
- cron: '0 13 * * *'
# Allow workflow to be triggered manually.
workflow_dispatch:
permissions:
pull-requests: write
contents: write
jobs:
sync:
name: Sync docs
if: ${{ github.repository == 'runfinch/finch-website' || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
with:
python-version: '3.x'
- name: Install script requirements
working-directory: ./scripts
run: pip install -r requirements.txt
- name: Update docs
working-directory: ./scripts
run: |
git status
git clean -f -d
python get_upstream_docs.py
- name: Create PR
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e
with:
token: ${{ secrets.GITHUB_TOKEN }}
signoff: true
title: 'docs: Sync docs from runfinch/finch'