Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: trying the latest changes from unreleased GH action #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,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
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.