Specify the host so the API always finds the release. (#1103)
This commit is contained in:
		
							parent
							
								
									122bc3287b
								
							
						
					
					
						commit
						ddd5a6e691
					
				
							
								
								
									
										2
									
								
								build.sh
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								build.sh
									
									
									
									
									
								
							| @ -67,7 +67,7 @@ if [ ! -d "$TARGET_DIR" ]; then | ||||
| fi | ||||
| 
 | ||||
| if test_command "gh" && test_gh_auth; then | ||||
|     gh release download --repo "$REPO_OWNER/$REPO_NAME" --pattern "*$ARTIFACT_NAME_PATTERN*" --clobber --output - | tar -zxv -C "$TARGET_DIR" | ||||
|     gh release download --repo "github.com/$REPO_OWNER/$REPO_NAME" --pattern "*$ARTIFACT_NAME_PATTERN*" --clobber --output - | tar -zxv -C "$TARGET_DIR" | ||||
| else | ||||
|     # Get the artifact download URL | ||||
|     ARTIFACT_URL=$(curl -s "https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/releases/latest" | grep "browser_download_url" | cut -d '"' -f 4 | grep $ARTIFACT_NAME_PATTERN) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Adam Sherwood
						Adam Sherwood