feat: pm2 ecosystem file icon #1322
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 🎨 Check SVG icon colors | |
on: | |
pull_request: | |
paths: | |
- "icons/*.svg" | |
permissions: | |
contents: read | |
jobs: | |
color-check: | |
name: SVG Color Check | |
runs-on: ubuntu-latest | |
env: | |
TARGET_BRANCH: ${{ github.event.pull_request.base.ref }} | |
steps: | |
- name: 📥 Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: 🔄 Fetch target branch | |
run: | | |
git fetch origin $TARGET_BRANCH | |
- name: 🎨 Check colors | |
run: | | |
svgFiles=$(git diff origin/$TARGET_BRANCH --diff-filter=ACMRTUX --name-only | grep '.svg$') | |
npx svg-color-linter --colors material-colors.yml ${svgFiles} |