forked from Netflix/conductor
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jozef Volak
committed
Jan 27, 2024
1 parent
8579c13
commit 76770f1
Showing
2 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,32 @@ jobs: | |
timeout-minutes: 5 | ||
steps: | ||
- name: Check out head branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
path: head | ||
- name: Check out swagger_docs branch | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: swagger_docs | ||
path: base | ||
fetch-depth: 2 | ||
- run: cd base && git checkout HEAD^ | ||
- name: Run OpenAPI Diff (from HEAD revision) | ||
uses: docker://openapitools/openapi-diff:latest | ||
with: | ||
args: --json diff.json base/latest.json head/latest.json | ||
- name: print diff | ||
run: cat diff.json | ||
run: cat diff.json | ||
- name: Send custom JSON data to Slack workflow | ||
id: slack | ||
uses: slackapi/[email protected] | ||
with: | ||
payload-file-path: "./diff.json" | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
# - name: Upload to slack step | ||
# uses: adrey/slack-file-upload-action@master | ||
# with: | ||
# token: ${{ secrets.SLACK_BOT_TOKEN }} | ||
# path: diff.json | ||
# channel: fx_api_changes |
Oops, something went wrong.