mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Change unit-tests.yml workflow to include conditional checkout step
This commit is contained in:
		
							parent
							
								
									88f9533b37
								
							
						
					
					
						commit
						d562f6a69f
					
				
							
								
								
									
										10
									
								
								.github/workflows/unit-tests.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/unit-tests.yml
									
									
									
									
										vendored
									
									
								
							| @ -11,13 +11,19 @@ on: | |||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   run-unit-tests: |   run-unit-tests: | ||||||
|  |     name: Run Unit Tests | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
| 
 | 
 | ||||||
|     steps: |     steps: | ||||||
|       - name: Checkout code |       - name: Checkout (push/pull request) | ||||||
|  |         uses: actions/checkout@v4 | ||||||
|  |         if: github.event_name != 'workflow_dispatch' | ||||||
|  | 
 | ||||||
|  |       - name: Checkout (workflow_dispatch) | ||||||
|         uses: actions/checkout@v4 |         uses: actions/checkout@v4 | ||||||
|         with: |         with: | ||||||
|           ref: ${{ github.event_name != 'workflow_dispatch' && github.ref_name || inputs.ref}} |           ref: inputs.ref | ||||||
|  |         if: github.event_name == 'workflow_dispatch' | ||||||
| 
 | 
 | ||||||
|       - name: Set up Node.js |       - name: Set up Node.js | ||||||
|         uses: actions/setup-node@v4 |         uses: actions/setup-node@v4 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user