mirror of
				https://github.com/vcmi/vcmi.git
				synced 2025-10-31 00:07:39 +02:00 
			
		
		
		
	CI: Use URL relative to repo's owner for test data
This allows to easily run tests in forks
This commit is contained in:
		
							
								
								
									
										8
									
								
								.github/workflows/github.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/github.yml
									
									
									
									
										vendored
									
									
								
							| @@ -146,7 +146,13 @@ jobs: | ||||
|         HEROES_3_DATA_PASSWORD: ${{ secrets.HEROES_3_DATA_PASSWORD }} | ||||
|       if: ${{ env.HEROES_3_DATA_PASSWORD != '' && matrix.test == 1 }} | ||||
|       run: | | ||||
|         wget --progress=dot:giga https://github.com/vcmi-mods/vcmi-test-data/releases/download/v1.0/h3_assets.zip | ||||
|         if [[ ${{github.repository_owner}} == vcmi ]] | ||||
|         then | ||||
|             data_url="https://github.com/vcmi-mods/vcmi-test-data/releases/download/v1.0/h3_assets.zip" | ||||
|         else | ||||
|             data_url="https://github.com/${{github.repository_owner}}/vcmi-test-data/releases/download/v1.0/h3_assets.zip" | ||||
|         fi | ||||
|         wget --progress=dot:giga "$data_url" -O h3_assets.zip | ||||
|         7za x h3_assets.zip -p$HEROES_3_DATA_PASSWORD | ||||
|         mkdir -p ~/.local/share/vcmi/ | ||||
|         mv h3_assets/* ~/.local/share/vcmi/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user