Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Apply overlay to API document
run: |
npx bump-cli overlay apis/greenly-openapi-source.json overlays/greenly-remove-operation.yaml > tmp/greenly-openapi-public.json
- name: Comment pull request with API diff
uses: bump-sh/github-action@v1
uses: paulrbr/github-action@upgrade-dependencies
with:
doc: greenly
token: ${{ secrets.GREENLY_BUMP_TOKEN }}
file: apis/greenly-openapi-source.json
file: tmp/greenly-openapi-public.json
command: diff
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
8 changes: 8 additions & 0 deletions overlays/greenly-remove-operation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
overlay: 1.0.0
info:
title: Remove all get operations
version: 0.0.1
actions:
- target: '$.paths.*.get'
description: remove first operation
remove: true
Empty file added tmp/.gitkeep
Empty file.