Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/ci_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,28 @@ jobs:
run: python3 -m pip install yamllint

- name: Lint YAML files
run: "yamllint -f github -d '{extends: default, rules: {line-length: disable}}' _data/guides.yml"
run: "yamllint -f github -d '{extends: default, rules: {line-length: disable}}' _data/guides.yml"

sort-yaml-by-title:
name: Sort YAML files by title
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v5
with:
ref: ${{ github.head_ref }}
persist-credentials: true
fetch-depth: 0

- name: Sort Keys by title
uses: mikefarah/yq@master
with:
cmd: yq -i 'sort_by(.title)' _data/guides.yml

- name: Commit and Push
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: "ci: Auto-sort _data/guides.yml by title [skip ci]"
file_pattern: "_data/guides.yml"
Loading