Files
userstyles/.github/workflows/format.yml
T
2023-07-25 08:50:27 +02:00

25 lines
707 B
YAML

name: Prettier
on:
pull_request:
push:
branches: [main]
jobs:
prettier:
runs-on: ubuntu-latest
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 }}
- name: Run prettier
uses: creyD/[email protected]
with:
commit_options: "--author 'github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>'"
commit_message: "style: format code with prettier"
prettier_options: "--write styles/**/*.css"