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:
parent
3b2ca0ad5b
commit
99168d28ea
14
.github/workflows/verify.yml
vendored
14
.github/workflows/verify.yml
vendored
@ -42,11 +42,23 @@ jobs:
|
||||
list-files: shell
|
||||
filters: |
|
||||
docs:
|
||||
- '*.md'
|
||||
- '*!(slugs).md'
|
||||
- '.github/**.md'
|
||||
icons:
|
||||
- 'icons/*.svg'
|
||||
slugs:
|
||||
- 'slugs.md'
|
||||
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
|
||||
run: npm i --ignore-scripts --no-audit --no-fund
|
||||
- name: Run linter
|
||||
|
Loading…
Reference in New Issue
Block a user