From b4c11604bf690677a17c85f1cfbb051ce98abddf Mon Sep 17 00:00:00 2001 From: Federico Girolami <68548715+fgirolami29@users.noreply.github.com> Date: Sat, 24 Oct 2026 05:56:24 +0200 Subject: [PATCH] fix(ci): restore YAML structure and select shared org macOS runner --- .github/workflows/prettier.yml | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/.github/workflows/prettier.yml b/.github/workflows/prettier.yml index f47d5db..0f966c5 100644 --- a/.github/workflows/prettier.yml +++ b/.github/workflows/prettier.yml @@ -1,15 +1,21 @@ name: Prettier + on: -pull_request: -push: -branches: [ main ] + pull_request: + push: + branches: [master, main] + +permissions: + contents: read + jobs: -check: -runs-on: ubuntu-latest -steps: -- uses: actions/checkout@v4 -- uses: actions/setup-node@v4 -with: -node-version: 20 -- run: npm ci || npm i -- run: npx prettier --check . + check: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository + runs-on: [self-hosted, macOS, X64] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - run: npm ci || npm i + - run: npx prettier --check .