Merge pull request #67 from HeidiHe/main #63
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: generate-readmes | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
generate-readmes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: npm | |
- name: Install | |
run: npm ci | |
- name: Format | |
run: npm run format | |
- name: Generate READMEs | |
run: npm run generate | |
- name: Add Changes | |
run: git add --force README.md CLOSED.md UP.md | |
- name: Commit | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Generate READMEs | |