Skip to content

fix: readme.md 样式丢失 #6

fix: readme.md 样式丢失

fix: readme.md 样式丢失 #6

name: generate_readme
on:
workflow_dispatch:
push:
branches:
- 'main'
jobs:
generate_readme:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: actions/[email protected]
- id: version
run: node script/update.js
- 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 "doc: update list.json"
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 }}