This commit is contained in:
		
							
								
								
									
										13
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -10,7 +10,7 @@ steps:
 | 
				
			|||||||
  #   settings:
 | 
					  #   settings:
 | 
				
			||||||
  #     repo: https://github.com/insignia-live/setup-assistant-release.git
 | 
					  #     repo: https://github.com/insignia-live/setup-assistant-release.git
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  - name: run
 | 
					  - name: check_release_tag
 | 
				
			||||||
    image: alpine:3.13
 | 
					    image: alpine:3.13
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - apk add --no-cache curl jq
 | 
					      - apk add --no-cache curl jq
 | 
				
			||||||
@@ -20,12 +20,11 @@ steps:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        if [[ "$latestReleaseTag" != "$targetReleaseTag" ]]; then
 | 
					        if [[ "$latestReleaseTag" != "$targetReleaseTag" ]]; then
 | 
				
			||||||
          echo "This pipeline is run because the new release is different from the target tag."
 | 
					          echo "This pipeline is run because the new release is different from the target tag."
 | 
				
			||||||
          echo "Running testing step..."
 | 
					 | 
				
			||||||
          exit 1
 | 
					 | 
				
			||||||
        else
 | 
					 | 
				
			||||||
          echo "The release tag is the same as the target tag. Skipping testing step."
 | 
					 | 
				
			||||||
          exit 0
 | 
					          exit 0
 | 
				
			||||||
        fi        
 | 
					        else
 | 
				
			||||||
 | 
					          echo "The release tag is the same as the target tag. Skipping pipeline."
 | 
				
			||||||
 | 
					          exit 78  # Skip the pipeline (status code 78)
 | 
				
			||||||
 | 
					        fi
 | 
				
			||||||
    when:
 | 
					    when:
 | 
				
			||||||
      status:
 | 
					      status:
 | 
				
			||||||
        - success
 | 
					        - success
 | 
				
			||||||
@@ -35,4 +34,4 @@ steps:
 | 
				
			|||||||
  - name: testing
 | 
					  - name: testing
 | 
				
			||||||
    image: alpine
 | 
					    image: alpine
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - echo "test"
 | 
					      - echo "test"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user