From 3711f311d6c51bad9a0a4163285cb71405c38da0 Mon Sep 17 00:00:00 2001 From: winston Date: Fri, 28 Jul 2023 20:26:58 +0200 Subject: [PATCH] ci(format): only run on main --- .github/workflows/format.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 94fc85f..394c8ec 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -1,7 +1,6 @@ name: Prettier on: - pull_request: push: branches: [main] @@ -13,9 +12,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - 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 }} + token: ${{ secrets.USERSTYLES_TOKEN }} - name: Run Prettier uses: creyD/prettier_action@v4.3 with: