Generate Readme #61
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 Readme | |
on: | |
workflow_dispatch: | |
issues: | |
types: [opened] | |
jobs: | |
bot: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Set node version to 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'pnpm' | |
- name: Run Script | |
run: pnpm install && pnpm generate && pnpm prettier && pnpm timeline | |
- name: Push | |
uses: github-actions-x/commit@v2.9 | |
with: | |
github-token: ${{ secrets.G_T }} | |
push-branch: main | |
commit-message: 'Update README.md by Github Actions' | |
name: github-actions[bot] | |
email: 41898282+github-actions[bot]@users.noreply.github.com |