Add pre-checkin workflow

This commit is contained in:
CrazyMax 2020-06-10 22:58:35 +02:00
parent e9d8a486b9
commit 56a17acc58
No known key found for this signature in database
GPG Key ID: 3248E46B6BB8C7F7
1 changed files with 30 additions and 0 deletions

30
.github/workflows/pre-checkin.yml vendored Normal file
View File

@ -0,0 +1,30 @@
name: pre-checkin
on:
push:
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
jobs:
pre-checkin:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
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