mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-23 06:58:58 +00:00
f13f5d9303
For whatever reason it seems to pick up the version without loading the app on my machine, but not on the CI.
9 lines
262 B
Elixir
9 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
|