 f13f5d9303
			
		
	
	
		f13f5d9303
		
	
	
	
	
		
			
			For whatever reason it seems to pick up the version without loading the app on my machine, but not on the CI.
		
			
				
	
	
		
			8 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			Elixir
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			262 B
		
	
	
	
		
			Elixir
		
	
	
	
	
	
| defmodule Mix.Tasks.Pleroma.OpenapiSpec do
 | |
|   def run([path]) do
 | |
|     # Load Pleroma application to get version info
 | |
|     Application.load(:pleroma)
 | |
|     spec = Pleroma.Web.ApiSpec.spec(server_specific: false) |> Jason.encode!()
 | |
|     File.write(path, spec)
 | |
|   end
 | |
| end
 |