mirror of
				https://github.com/nitnelave/lldap.git
				synced 2023-04-12 14:25:13 +00:00 
			
		
		
		
	workflows: Don't run Rust workflow again for same files
This commit is contained in:
		
							parent
							
								
									d8a45c947f
								
							
						
					
					
						commit
						c2e490aee7
					
				
							
								
								
									
										23
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										23
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							@ -10,8 +10,25 @@ env:
 | 
				
			|||||||
  CARGO_TERM_COLOR: always
 | 
					  CARGO_TERM_COLOR: always
 | 
				
			||||||
 | 
					
 | 
				
			||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
 | 
					  pre_job:
 | 
				
			||||||
 | 
					    # continue-on-error: true # Uncomment once integration is finished
 | 
				
			||||||
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    # Map a step output to a job output
 | 
				
			||||||
 | 
					    outputs:
 | 
				
			||||||
 | 
					      should_skip: ${{ steps.skip_check.outputs.should_skip }}
 | 
				
			||||||
 | 
					    steps:
 | 
				
			||||||
 | 
					      - id: skip_check
 | 
				
			||||||
 | 
					        uses: fkirc/skip-duplicate-actions@master
 | 
				
			||||||
 | 
					        with:
 | 
				
			||||||
 | 
					          # All of these options are optional, so you can remove them if you are happy with the defaults
 | 
				
			||||||
 | 
					          concurrent_skipping: 'never'
 | 
				
			||||||
 | 
					          skip_after_successful_duplicate: 'true'
 | 
				
			||||||
 | 
					          paths_ignore: '["**/README.md"]'
 | 
				
			||||||
 | 
					          do_not_skip: '["pull_request", "workflow_dispatch", "schedule"]'
 | 
				
			||||||
  test:
 | 
					  test:
 | 
				
			||||||
    name: cargo test
 | 
					    name: cargo test
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
@ -30,6 +47,8 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  clippy:
 | 
					  clippy:
 | 
				
			||||||
    name: cargo clippy
 | 
					    name: cargo clippy
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout sources
 | 
					      - name: Checkout sources
 | 
				
			||||||
@ -53,6 +72,8 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  format:
 | 
					  format:
 | 
				
			||||||
    name: cargo fmt
 | 
					    name: cargo fmt
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout sources
 | 
					      - name: Checkout sources
 | 
				
			||||||
@ -76,6 +97,8 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  coverage:
 | 
					  coverage:
 | 
				
			||||||
    name: Code coverage
 | 
					    name: Code coverage
 | 
				
			||||||
 | 
					    needs: pre_job
 | 
				
			||||||
 | 
					    if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Checkout sources
 | 
					      - name: Checkout sources
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user