From b24a79124f6b410c60de159a2eb3787662a0de1c Mon Sep 17 00:00:00 2001 From: Core <64542347+coredev-uk@users.noreply.github.com> Date: Thu, 4 Aug 2022 21:10:41 +0100 Subject: [PATCH] Moved to auto commit --- .github/workflows/prettier.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index 22fac083..e1be48ea 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -10,6 +10,8 @@ on: jobs: prettier: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout @@ -19,8 +21,12 @@ jobs: ref: ${{ github.head_ref }} - name: Prettify code - uses: creyD/prettier_action@v4.2 + run: npm run prettier + + - name: Commit Prettier Code + uses: stefanzweifel/git-auto-commit-action@v4.14.1 with: - # This part is also where you can pass other options, for example: - prettier_options: --write **/*.{js,json,ts,css,less} - github_token: ${{ secrets.RELEASE_TOKEN }} + + commit_message: "chore: Prettified Code\n ci skip" + commit_user_name: cider-chore[bot] +