Generating docs for refs/pull/32/merge #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-docs-workflow | |
run-name: Generating docs for ${{ github.ref }} | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install deps | |
run: npm i | |
- name: Generate docs | |
run: npx oclif readme | |
- name: Commit docs | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git commit -am "Generate docs: ${{ github.ref }}" | |
git push |