mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-18 19:15:14 +00:00
ef1521bce2
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.4.0 to 3. - [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/v2.4.0...v3) --- updated-dependencies: - dependency-name: actions/checkout 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>
32 lines
971 B
YAML
32 lines
971 B
YAML
---
|
|
name: Format + Docs Workflow
|
|
on:
|
|
push:
|
|
paths: ["docs/**", "**.md", "**.toml", "**.js", "**.json", "**.ts"]
|
|
pull_request:
|
|
paths: ["docs/**", "**.md", "**.toml", "**.js", "**.json", "**.ts"]
|
|
|
|
jobs:
|
|
# Run the dprint code formatter for documentation
|
|
dprint:
|
|
name: Dprint [Docs Formatter]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup | Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Docs | Format
|
|
uses: dprint/check@v2.0
|
|
|
|
# If this is not a Crowdin PR, block changes to translated documentation
|
|
block-crowdin:
|
|
name: Block Translated Changes
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event_name == 'pull_request' }}
|
|
steps:
|
|
- name: Prevent File Change
|
|
uses: xalvarez/prevent-file-change-action@v1.2.0
|
|
if: ${{ github.event.pull_request.head.ref != 'i18n_master' }}
|
|
with:
|
|
githubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
pattern: docs/[a-z][a-z][a-z]?-[A-Z][A-Z]?/.*
|