From afc521152080eb211118a0898065fdc770420ad4 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 25 Jul 2023 08:50:27 +0200 Subject: [PATCH] ci(format): revert fae1cb91 --- .github/workflows/format.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index ea934f0..94806d2 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -12,20 +12,13 @@ jobs: steps: - uses: actions/checkout@v3 with: - # using the USERSTYLES_TOKEN for main (branch protection), - # and general github.token for PRs token: ${{ github.ref == 'refs/heads/main' && secrets.USERSTYLES_TOKEN || github.token }} + # Make sure the actual branch is checked out when running on pull requests + ref: ${{ github.head_ref }} - name: Run prettier - uses: actionsx/prettier@v2 - with: - args: "--write styles/**/*.css" - - - name: Push Changes - uses: stefanzweifel/git-auto-commit-action@v4 - if: ${{ github.repository == 'catppuccin/userstyles' && github.ref == 'refs/heads/main' }} + uses: creyD/prettier_action@v4.3 with: + commit_options: "--author 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'" commit_message: "style: format code with prettier" - commit_author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" - branch: ${{ github.ref }} -# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + prettier_options: "--write styles/**/*.css"