1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-12-16 01:10:30 +02:00

Don't edit slugs.md in pull requests (#12148)

This commit is contained in:
Álvaro Mondéjar Rubio 2024-11-17 21:52:51 +01:00 committed by GitHub
parent 3b2ca0ad5b
commit 99168d28ea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -42,11 +42,23 @@ jobs:
list-files: shell list-files: shell
filters: | filters: |
docs: docs:
- '*.md' - '*!(slugs).md'
- '.github/**.md' - '.github/**.md'
icons: icons:
- 'icons/*.svg' - 'icons/*.svg'
slugs:
- 'slugs.md'
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
- name: Don't edit slugs.md in pull requests
if: |
github.base_ref != 'refs/heads/master' &&
github.event_name == 'pull_request' &&
steps.changes.outputs.slugs == 'true'
run: |
echo -ne "Detected slugs.md file edition in PR.\n" 1>&2
echo -ne "Please revert it, we build the slugs.md" 1>&2
echo -ne " file automatically at releases.\n" 1>&2
exit 1
- name: Install dependencies - name: Install dependencies
run: npm i --ignore-scripts --no-audit --no-fund run: npm i --ignore-scripts --no-audit --no-fund
- name: Run linter - name: Run linter