Skip to content

Update collect.yml

Update collect.yml #1

Workflow file for this run

name: Generate Documentation
on:
push:
branches:
- main
workflow_dispatch:
repository_dispatch:
types: [collect]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install gitpython openai markdown2
- name: Run Documentation Script
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python collect.py
- name: Commit and Push changes
uses: EndBug/add-and-commit@v9
with:
add: 'all.md'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}