ci(format): only run on main
This commit is contained in:
parent
4e3256a5c0
commit
3711f311d6
5
.github/workflows/format.yml
vendored
5
.github/workflows/format.yml
vendored
@ -1,7 +1,6 @@
|
|||||||
name: Prettier
|
name: Prettier
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
@ -13,9 +12,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ github.ref == 'refs/heads/main' && secrets.USERSTYLES_TOKEN || github.token }}
|
token: ${{ secrets.USERSTYLES_TOKEN }}
|
||||||
# Make sure the actual branch is checked out when running on pull requests
|
|
||||||
ref: ${{ github.head_ref }}
|
|
||||||
- name: Run Prettier
|
- name: Run Prettier
|
||||||
uses: creyD/prettier_action@v4.3
|
uses: creyD/prettier_action@v4.3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user