diff --git a/.forgejo/workflows/format.yml b/.forgejo/workflows/format.yml index 9df042d..926399f 100644 --- a/.forgejo/workflows/format.yml +++ b/.forgejo/workflows/format.yml @@ -1,33 +1,33 @@ name: Format frontend with Prettier on: - push: - branches: ["master"] + push: + branches: ["master"] jobs: - format: - runs-on: linux - container: alpine:latest + format: + runs-on: linux + container: alpine:latest - steps: - - name: Install dependencies - run: apk add --no-cache nodejs npm git + steps: + - name: Install dependencies + run: apk add --no-cache nodejs npm git - - name: Checkout repo - uses: actions/checkout@v4 + - name: Checkout repo + uses: actions/checkout@v4 - - name: Install frontend deps - working-directory: frontend - run: npm install + - name: Install frontend deps + working-directory: frontend + run: npm install - - name: Run Prettier - working-directory: frontend - run: npx prettier --write . + - name: Run Prettier + working-directory: frontend + run: npx prettier --write . - - name: Commit changes - run: | - git config user.name "forgejo-bot" - git config user.email "forgejo-bot@local" - git add frontend - git diff --cached --quiet || git commit -m "chore: format frontend with prettier" - git push + - name: Commit changes + run: | + git config user.name "forgejo-bot" + git config user.email "forgejo-bot@local" + git add frontend + git diff --cached --quiet || git commit -m "chore: format frontend with prettier" + git push