From b0ea92a472e02126bee103662d3ff6ad2d207772 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Mon, 26 Apr 2021 17:54:02 +0200 Subject: [PATCH] remove swager main annotaion from package --- .github/workflows/swagger.yml | 3 +++ src/HeadlessH5PServiceProvider.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/swagger.yml b/.github/workflows/swagger.yml index a5a4a232..9f0e2b29 100644 --- a/.github/workflows/swagger.yml +++ b/.github/workflows/swagger.yml @@ -19,6 +19,9 @@ jobs: - name: Setup environment run: cp -r env/codecov/. . + - name: add Swagger main annotaion + run: php -r "file_put_contents('src/HeadlessH5PServiceProvider.php', str_replace('SWAGGER_VERSION', '@OA\Info(title=\"EscolaLMS\", version=\"0.0.1\")', file_get_contents('src/HeadlessH5PServiceProvider.php')));" + - name: Update composer run: composer update diff --git a/src/HeadlessH5PServiceProvider.php b/src/HeadlessH5PServiceProvider.php index 96bc1686..171858bf 100644 --- a/src/HeadlessH5PServiceProvider.php +++ b/src/HeadlessH5PServiceProvider.php @@ -28,7 +28,7 @@ use EscolaLms\HeadlessH5P\Repositories\H5PContentRepository; /** -* @OA\Info(title="EscolaLMS", version="0.0.1") +* SWAGGER_VERSION */ class HeadlessH5PServiceProvider extends ServiceProvider