ci(prettier): fix token ternary
This commit is contained in:
1 file changed
+1
-1
@@ -14,7 +14,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
# using the USERSTYLES_TOKEN for main (branch protection),
|
# using the USERSTYLES_TOKEN for main (branch protection),
|
||||||
# and general github.token for PRs
|
# 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
|
- name: Run prettier
|
||||||
uses: actionsx/prettier@v2
|
uses: actionsx/prettier@v2
|
||||||
|
|||||||
Reference in new issue
Block a user