feat(ci): added filename lint job (#1782)

This commit is contained in:
Jakob Guddas
2024-01-07 17:15:49 +01:00
committed by GitHub
parent 05f209cb04
commit bc5efd7f0d
2 changed files with 44 additions and 0 deletions
+20
View File
@@ -9,6 +9,26 @@ on:
- fix-icon-preview
jobs:
lint-filenames:
if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: refs/pull/${{ github.event.pull_request.number }}/merge
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: icons/*
- name: Generate annotations
run: node ./scripts/lintFilenames.mjs
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
lint-contributors:
if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest