mirror of
https://github.com/canonical/canonical-design.git
synced 2025-07-24 12:19:48 +00:00
Revert lint-djlint action
This commit is contained in:
28
.github/workflows/pr.yaml
vendored
28
.github/workflows/pr.yaml
vendored
@ -84,6 +84,34 @@ jobs:
|
|||||||
- name: Lint python
|
- name: Lint python
|
||||||
run: dotrun lint-python
|
run: dotrun lint-python
|
||||||
|
|
||||||
|
lint-jinja:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install node dependencies
|
||||||
|
run: yarn install --immutable
|
||||||
|
|
||||||
|
- name: Install python dependencies
|
||||||
|
run: |
|
||||||
|
python3 -m pip install --upgrade pip
|
||||||
|
sudo pip3 install djlint
|
||||||
|
|
||||||
|
- name: Get changed HTML files in the templates folder
|
||||||
|
id: changed-files
|
||||||
|
uses: tj-actions/changed-files@v43
|
||||||
|
with:
|
||||||
|
files: templates/**/*.html
|
||||||
|
|
||||||
|
- name: Lint jinja
|
||||||
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
|
env:
|
||||||
|
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
|
run: |
|
||||||
|
echo "The following files have changed: $CHANGED_FILES"
|
||||||
|
djlint $CHANGED_FILES --lint --profile="jinja"
|
||||||
|
|
||||||
inclusive-naming-check:
|
inclusive-naming-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user