feat: update info #47
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_md | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
jobs: | |
generate_readme: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- uses: pnpm/action-setup@v3 | |
- run: pnpm install | |
- id: check | |
run: pnpm check | |
- if: ${{ steps.check.outcome == 'success' }} | |
run: pnpm run update | |
- name: Git commit | |
id: commit | |
run: | | |
git config --local user.email github-actions[bot]@users.noreply.github.com | |
git config --local user.name github-actions[bot] | |
git config --global core.autocrlf true | |
git config --global core.safecrlf false | |
git status | |
git add . | |
git commit -a -m "docs: update README and importUrlsList" | |
continue-on-error: true | |
- name: Git push | |
if: ${{ steps.commit.outcome == 'success' }} | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |