From 919edff29561a7ff184cb0cad646c33e63acd0b0 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Wed, 10 Jun 2020 22:56:59 +0200 Subject: [PATCH] Add pre-checkin workflow --- .github/workflows/pre-checkin.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pre-checkin.yml diff --git a/.github/workflows/pre-checkin.yml b/.github/workflows/pre-checkin.yml new file mode 100644 index 0000000..38808c1 --- /dev/null +++ b/.github/workflows/pre-checkin.yml @@ -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