Skip to content

Commit

Permalink
Updated workflow to prevent sideloading of model since the spec is final
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviaracil committed Jul 31, 2024
1 parent 372e96a commit c07f1b4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ob_v3p0_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish-json-schema.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/publish-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c07f1b4

Please sign in to comment.