mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	Move if conditions to the steps and not to the whole job
This commit is contained in:
		
							
								
								
									
										4
									
								
								.github/workflows/publish-binaries.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								.github/workflows/publish-binaries.yml
									
									
									
									
										vendored
									
									
								
							@@ -11,13 +11,13 @@ jobs:
 | 
				
			|||||||
    name: Check the version validity
 | 
					    name: Check the version validity
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    # No need to check the version for dry run (cron)
 | 
					    # No need to check the version for dry run (cron)
 | 
				
			||||||
    if: github.event_name != 'schedule'
 | 
					 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v2
 | 
					      - uses: actions/checkout@v2
 | 
				
			||||||
      # Check if the tag has the v<nmumber>.<number>.<number> format.
 | 
					      # Check if the tag has the v<nmumber>.<number>.<number> format.
 | 
				
			||||||
      # If yes, it means we are publishing an official release.
 | 
					      # If yes, it means we are publishing an official release.
 | 
				
			||||||
      # If no, we are releasing a RC, so no need to check the version.
 | 
					      # If no, we are releasing a RC, so no need to check the version.
 | 
				
			||||||
      - name: Check tag format
 | 
					      - name: Check tag format
 | 
				
			||||||
 | 
					        if: github.event_name != 'schedule'
 | 
				
			||||||
        id: check-tag-format
 | 
					        id: check-tag-format
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          escaped_tag=$(printf "%q" ${{ github.ref_name }})
 | 
					          escaped_tag=$(printf "%q" ${{ github.ref_name }})
 | 
				
			||||||
@@ -28,7 +28,7 @@ jobs:
 | 
				
			|||||||
            echo ::set-output name=stable::false
 | 
					            echo ::set-output name=stable::false
 | 
				
			||||||
          fi
 | 
					          fi
 | 
				
			||||||
      - name: Check release validity
 | 
					      - name: Check release validity
 | 
				
			||||||
        if: steps.check-tag-format.outputs.stable == 'true'
 | 
					        if: github.event_name != 'schedule' && steps.check-tag-format.outputs.stable == 'true'
 | 
				
			||||||
        run: bash .github/scripts/check-release.sh
 | 
					        run: bash .github/scripts/check-release.sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  publish:
 | 
					  publish:
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user