From c07f1b4ec8a62a21b1eca5a619cebae5fdab5136 Mon Sep 17 00:00:00 2001 From: Xavi Aracil Date: Wed, 31 Jul 2024 13:14:17 +0200 Subject: [PATCH] Updated workflow to prevent sideloading of model since the spec is final --- .github/workflows/ob_v3p0_push.yml | 3 ++- .github/workflows/publish-json-schema.yml | 3 ++- .github/workflows/publish-openapi.yml | 19 ++++++++++--------- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ob_v3p0_push.yml b/.github/workflows/ob_v3p0_push.yml index 99e38360..7dd6c920 100644 --- a/.github/workflows/ob_v3p0_push.yml +++ b/.github/workflows/ob_v3p0_push.yml @@ -18,7 +18,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: curl -H 'X-Api-Key:${{ secrets.API_KEY }}' -F 'file=@ob_v3p0/ob_v3p0.lines' https://datamodels-staging.imsglobal.org/upload +# - run: curl -H 'X-Api-Key:${{ secrets.API_KEY }}' -F 'file=@ob_v3p0/ob_v3p0.lines' https://datamodels-staging.imsglobal.org/upload + - run: echo 'Not needed for now as spec is final.' continue-on-error: false build: diff --git a/.github/workflows/publish-json-schema.yml b/.github/workflows/publish-json-schema.yml index c3b9f8a5..16e7656a 100644 --- a/.github/workflows/publish-json-schema.yml +++ b/.github/workflows/publish-json-schema.yml @@ -24,7 +24,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: curl -H 'X-Api-Key:${{ secrets.API_KEY }}' -F 'file=@ob_v3p0/ob_v3p0.lines' https://datamodels-staging.imsglobal.org/upload + # - run: curl -H 'X-Api-Key:${{ secrets.API_KEY }}' -F 'file=@ob_v3p0/ob_v3p0.lines' https://datamodels-staging.imsglobal.org/upload + - run: echo 'Not needed for now as spec is final.' continue-on-error: false publish: diff --git a/.github/workflows/publish-openapi.yml b/.github/workflows/publish-openapi.yml index 1662add1..8a7dd4c9 100644 --- a/.github/workflows/publish-openapi.yml +++ b/.github/workflows/publish-openapi.yml @@ -4,16 +4,16 @@ on: workflow_dispatch: push: - branches: + branches: - develop - paths: + paths: - 'ob_v3p0/ob_v3p0.lines' - 'ob_v3p0/common_credentials.lines' - + pull_request: - branches: + branches: - develop - paths: + paths: - 'ob_v3p0/ob_v3p0.lines' - 'ob_v3p0/common_credentials.lines' @@ -24,9 +24,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - run: curl -H 'X-Api-Key:${{ secrets.API_KEY }}' -F 'file=@ob_v3p0/ob_v3p0.lines' https://datamodels-staging.imsglobal.org/upload + # - run: curl -H 'X-Api-Key:${{ secrets.API_KEY }}' -F 'file=@ob_v3p0/ob_v3p0.lines' https://datamodels-staging.imsglobal.org/upload + - run: echo 'Not needed for now as spec is final.' continue-on-error: false - + openapi: name: Generate the OpenAPI files needs: sideload @@ -37,7 +38,7 @@ jobs: - run: curl -H 'X-Api-Key:${{ secrets.API_KEY }}' https://datamodels-staging.imsglobal.org/openapischema/org.1edtech.ob.v3p0.model?binding=yaml --output openapi.yaml - name: Upload OpenAPI files uses: actions/upload-artifact@v3 - with: + with: name: openapi.yaml path: openapi.yaml - uses: actions/upload-artifact@v3 @@ -50,7 +51,7 @@ jobs: ref: gh-pages - name: Download the OpenAPI files uses: actions/download-artifact@v3 - with: + with: name: openapi.yaml path: docs/openapi - uses: actions/download-artifact@v3