ci(prettier): fix token ternary

This commit is contained in:
winston 2023-07-25 08:27:53 +02:00
parent fae1cb9163
commit 3f6d35892b
No known key found for this signature in database
GPG Key ID: 3786770EDBC2B481

View File

@ -14,7 +14,7 @@ jobs:
with:
# using the USERSTYLES_TOKEN for main (branch protection),
# and general github.token for PRs
token: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && secrets.USERSTYLES_TOKEN || github.token }}}
token: ${{ github.ref == 'refs/heads/main' && secrets.USERSTYLES_TOKEN || github.token }}
- name: Run prettier
uses: actionsx/prettier@v2