diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7c9cc90..72dd0c8 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,8 +1,9 @@ name: Lint on: - pull_request: push: + branches: + - main jobs: eslint: @@ -18,4 +19,18 @@ jobs: - name: Install dependencies run: yarn - name: ESLint - run: yarn run eslint . + run: yarn lint + - name: Commit changes + run: | + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --global user.name "awesome-stars" + git add -A + git diff-index --quiet HEAD || git commit -m "📝 Lint" + - name: Pull changes + run: git pull -r + + - name: Push changes + uses: ad-m/github-push-action@b007e7b818e33b04afd056e4c4b57ba917145d7a + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + branch: 'main'