2020-06-11 04:56:33 +08:00
|
|
|
name: pre-checkin
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- '**.md'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
pre-checkin:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
2020-11-08 09:55:49 +08:00
|
|
|
uses: actions/checkout@v2
|
2020-06-11 04:56:33 +08:00
|
|
|
-
|
|
|
|
name: Install
|
|
|
|
run: yarn install
|
|
|
|
-
|
|
|
|
name: Pre-checkin
|
|
|
|
run: yarn run pre-checkin
|
|
|
|
-
|
|
|
|
name: Check for uncommitted changes
|
|
|
|
run: |
|
|
|
|
if [[ `git status --porcelain` ]]; then
|
|
|
|
git status --porcelain
|
|
|
|
echo "::warning::Found changes. Please run 'yarn run pre-checkin' and push"
|
|
|
|
fi
|