使用 shell 脚本复制项目信息到剪切板 #28
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: 7 | |
- name: Set node version to 16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'pnpm' | |
- name: Run Script | |
run: pnpm install && pnpm build && pnpm prettier | |
- name: Push | |
uses: github-actions-x/commit@v2.9 | |
with: | |
github-token: ${{ secrets.ACCESS_TOKEN }} | |
push-branch: master | |
commit-message: 'Update README.md by Github Actions' | |
name: github-actions[bot] | |
email: 41898282+github-actions[bot]@users.noreply.github.com |