only run labelers for core team (#3426)
* use `pull_request_target` instead of `pull_request` * adjust * only run for core team
This commit is contained in:
		
							parent
							
								
									443dfb5c3e
								
							
						
					
					
						commit
						c80dcc565e
					
				
					 1 changed files with 7 additions and 8 deletions
				
			
		
							
								
								
									
										15
									
								
								.github/workflows/pull-request-commit.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										15
									
								
								.github/workflows/pull-request-commit.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -13,13 +13,15 @@ concurrency:
 | 
			
		|||
  group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
 | 
			
		||||
  cancel-in-progress: true
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  pull-requests: write
 | 
			
		||||
  actions: write
 | 
			
		||||
  contents: read
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  webpack-analyzer:
 | 
			
		||||
    runs-on: ubuntu-22.04
 | 
			
		||||
    if: ${{ github.event_name == 'pull_request' }}
 | 
			
		||||
    permissions:
 | 
			
		||||
      pull-requests: write
 | 
			
		||||
      actions: write
 | 
			
		||||
    if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: ⬇️ Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
| 
						 | 
				
			
			@ -94,11 +96,8 @@ jobs:
 | 
			
		|||
 | 
			
		||||
  test-suite-fingerprint:
 | 
			
		||||
    runs-on: ubuntu-22.04
 | 
			
		||||
    if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
 | 
			
		||||
    if: ${{ github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'push' }}
 | 
			
		||||
    concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
 | 
			
		||||
    permissions:
 | 
			
		||||
      pull-requests: write
 | 
			
		||||
      actions: write
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: ⬇️ Checkout
 | 
			
		||||
        uses: actions/checkout@v4
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue