datahub/.github/workflows/github-actions-format.yml

31 lines
726 B
YAML

name: github actions format
on:
push:
branches:
- master
paths:
- ".github/**/*.{yml,yaml}"
pull_request:
branches:
- "**"
paths:
- ".github/**/*.{yml,yaml}"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
github_actions_format_check:
name: github_actions_format_check
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: acryldata/sane-checkout-action@v3
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: run prettier --check
run: |-
./gradlew :datahub-web-react:githubActionsPrettierCheck