Skip to content

Commit 54d2cba

Browse files
committed
yep that worked
1 parent cc02769 commit 54d2cba

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

.github/workflows/bump.yml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,32 @@ jobs:
3939
token: ${{secrets.BUMP_TOKEN}}
4040
file: http://localhost:8080/openapi
4141

42+
api-diff:
43+
if: ${{ github.event_name == 'pull_request' }}
44+
name: Check API diff on Bump.sh
45+
runs-on: ubuntu-latest
46+
steps:
47+
- name: Checkout
48+
uses: actions/checkout@v4
4249

43-
50+
- name: Set up JDK
51+
uses: actions/setup-java@v2
52+
with:
53+
distribution: 'temurin'
54+
java-version: '21'
55+
56+
- name: Build and run the application
57+
run: |
58+
mvn clean spring-boot:run &
59+
60+
- name: Wait for the application to start
61+
run: sleep 30
62+
- name: Comment pull request with API diff
63+
uses: bump-sh/github-action@v1
64+
with:
65+
doc: spring-code-first
66+
token: ${{secrets.BUMP_TOKEN}}
67+
file: http://localhost:8080/openapi
68+
command: diff
69+
env:
70+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

src/main/java/com/bumpsh/demo/Employee.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ class Employee {
2323
@Schema(description = "Employee name", example = "Bilbo Baggins")
2424
private String name;
2525

26-
@Schema(description = "Employee role", example = "Software Engineer", deprecated = true)
27-
@Deprecated
26+
@Schema(description = "Employee role", example = "Software Engineer")
2827
private String role;
2928

3029
Employee() {}

0 commit comments

Comments
 (0)