mirror of
https://github.com/discourse/discourse.git
synced 2026-08-04 10:39:43 +08:00
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) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47 lines
1 KiB
YAML
Vendored
47 lines
1 KiB
YAML
Vendored
name: Developer Docs Lint
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "docs/developer-guides/**"
|
|
- ".github/workflows/developer-docs-lint.yml"
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "docs/developer-guides/**"
|
|
- ".github/workflows/developer-docs-lint.yml"
|
|
|
|
concurrency:
|
|
group: developer-docs-lint-${{ format('{0}-{1}', github.head_ref || github.run_number, github.job) }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
prettier:
|
|
if: github.event_name == 'pull_request' || github.repository != 'discourse/discourse-private-mirror'
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 5
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: docs/developer-guides
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 1
|
|
|
|
- uses: pnpm/action-setup@v5
|
|
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --frozen-lockfile
|
|
|
|
- name: Lint
|
|
run: pnpm lint
|