From b2510a72526194f6026397eb533e1714db1bc099 Mon Sep 17 00:00:00 2001 From: Zoey Date: Wed, 17 Apr 2024 18:06:46 +0200 Subject: [PATCH] Create eslint.yml Signed-off-by: Zoey --- .github/workflows/eslint.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/eslint.yml diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml new file mode 100644 index 0000000..812f37c --- /dev/null +++ b/.github/workflows/eslint.yml @@ -0,0 +1,26 @@ +name: js +on: + push: + schedule: + - cron: "0 */6 * * *" + workflow_dispatch: +jobs: + js: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 21 + - name: eslint + run: | + yarn install --no-lockfile + yarn eslint . --fix + - name: push changes + run: | + git add -A + git config user.name "GitHub" + git config user.email "noreply@github.com" + git diff-index --quiet HEAD || git commit -sm "eslint" + git push