Files
XTLS_Xray-docs-next/.github/workflows/prettier.yml
T
dependabot[bot] a18d1a3807 Bump actions/checkout from 6 to 7 (#868)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-26 01:22:33 +08:00

38 lines
910 B
YAML

name: Prettier Action
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
prettier:
runs-on: ubuntu-latest
steps:
- name: Checkout
if: github.event_name == 'push'
uses: actions/checkout@v7
with:
ref: ${{ github.head_ref }}
- name: Checkout
if: github.event_name == 'pull_request'
uses: actions/checkout@v7
with:
fetch-depth: 2
- name: Prettify code
if: github.event_name == 'push'
uses: creyD/prettier_action@v4.6
with:
prettier_options: --write **/*.{mjs,mts,css,vue,md}
- name: Prettify code dry run
if: github.event_name == 'pull_request'
uses: creyD/prettier_action@v4.6
with:
prettier_options: --write **/*.{mjs,mts,css,vue,md}
only_changed: true
dry: true