From 8a7e2548a039518252f79bc88157a8a57fd300a0 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 20 Oct 2019 04:52:34 +0200 Subject: [PATCH] Add uncommited workflow --- .github/workflows/uncommited.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/uncommited.yml diff --git a/.github/workflows/uncommited.yml b/.github/workflows/uncommited.yml new file mode 100644 index 0000000..14d4e34 --- /dev/null +++ b/.github/workflows/uncommited.yml @@ -0,0 +1,27 @@ +name: uncommited + +on: + pull_request: + push: + +jobs: + changes: + runs-on: ubuntu-latest + steps: + - + # https://github.com/actions/checkout + name: Checkout + uses: actions/checkout@v1 + - + name: Build + run: | + npm install + npm run build + npm run format + npm prune --production + - + name: Check for uncommitted changes + run: | + if [[ `git status --porcelain` ]]; then + echo "##[error] found changed files after build. please 'npm run build && npm run format && npm prune --production'" + fi