Skip to content

Commit

Permalink
WiP
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Frederik Dauck committed Oct 9, 2023
1 parent e2a0caf commit 8b4fc12
Show file tree
Hide file tree
Showing 9 changed files with 319 additions and 426 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/open-api-bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,16 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
# persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal access token.
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
- name: WIP
run: echo ${{ github.ref }}
- name: WIP
run: echo ${{ github.head_ref }}
# - name: Create local changes
# run: |
# ...
# - name: Commit files
# run: |
# git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
# git config --local user.name "github-actions[bot]"
# git commit -a -m "Add changes"
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
- name: Setup Node
uses: actions/setup-node@v3
- name: Bundle specs
run: npx @redocly/cli bundle openapi.yaml -o dist/openapi.yaml --ext yaml
- name: Commit files
run: git commit -a -m "automatically bundle open api spec"
- name: Push changes
uses: ad-m/github-push-action@master
with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# branch: ${{ github.ref }}
branch: ${{ github.ref }}
2 changes: 1 addition & 1 deletion api/reporting/Invoices.yaml → api/reporting/Invoice.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ get:
content:
application/json:
schema:
$ref: '../../schemas/bookings/BookingWrapped.yaml'
$ref: '../../schemas/reporting/DetailedInvoiceWrapped.yaml'
404:
$ref: '../../responses/404NotFound.yaml'
Loading

0 comments on commit 8b4fc12

Please sign in to comment.