From 316ee6011a016dd29e8f935c3596747cb57fcd79 Mon Sep 17 00:00:00 2001 From: Dm1tr1y147 Date: Thu, 26 Nov 2020 20:41:11 +0500 Subject: [PATCH] Initial commit --- .github/code-style.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/code-style.yml diff --git a/.github/code-style.yml b/.github/code-style.yml new file mode 100644 index 0000000..71cf3eb --- /dev/null +++ b/.github/code-style.yml @@ -0,0 +1,25 @@ +name: Code style + +on: [push] + +jobs: + prettier: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Install NPM dependencies + run: npm ci + + - name: Run prettier + run: npm run format + + - name: Commit actions + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: Apply Prettier styles + branch: ${{ github.head_ref }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}