ci(format): only run on main

This commit is contained in:
winston committed 2023-07-28 20:27:13 +02:00
1 parent 4e3256a5c0
commit 3711f311d6
1 file changed
+1 -4
+1 -4
View File
@@ -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/[email protected]
with: