Skip to content

Merge pull request #2 from xiaofeiTM233/patch-1 #68

Merge pull request #2 from xiaofeiTM233/patch-1

Merge pull request #2 from xiaofeiTM233/patch-1 #68

Workflow file for this run

name: Sort & Format
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'README_RAW.md'
- 'sort_format.js'
pull_request:
types:
- synchronize
branches:
- main
paths:
- 'README_RAW.md'
- 'sort_format.js'
jobs:
Start:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
ref: main
fetch-depth: 0
lfs: true
- name: Set git identity
run : |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Sort
run: npm install -D && npm run sort-format
- name: Push Commits
env:
TZ: Asia/Shanghai
run: |
git add README.md
git commit --file="./message.txt"
git push origin main