mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 19:42:54 +08:00
ci: skip verify-files-modify for long-time contributors
This commit is contained in:
parent
50b915420c
commit
fcf10bc238
8
.github/workflows/verify-files-modify.yml
vendored
8
.github/workflows/verify-files-modify.yml
vendored
@ -14,7 +14,15 @@ jobs:
|
|||||||
pull-requests: write # for actions-cool/verify-files-modify to update status of PRs
|
pull-requests: write # for actions-cool/verify-files-modify to update status of PRs
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: get commit count
|
||||||
|
id: get_commit_count
|
||||||
|
run: |
|
||||||
|
PR_AUTHOR="${{ github.event.pull_request.user.login }}"
|
||||||
|
RESULT_DATA=$(curl -s "https://api.github.com/repos/${{ github.repository }}/commits?author=${PR_AUTHOR}&per_page=5")
|
||||||
|
DATA_LENGTH=$(echo "$RESULT_DATA" | jq 'if type == "array" then length else 0 end')
|
||||||
|
echo "COUNT=$DATA_LENGTH" >> $GITHUB_OUTPUT
|
||||||
- name: verify-version
|
- name: verify-version
|
||||||
|
if: ${{ steps.get_commit_count.outputs.COUNT < 5 }}
|
||||||
uses: actions-cool/verify-files-modify@v1
|
uses: actions-cool/verify-files-modify@v1
|
||||||
with:
|
with:
|
||||||
forbid-paths: '.github/, scripts/'
|
forbid-paths: '.github/, scripts/'
|
||||||
|
Loading…
Reference in New Issue
Block a user