aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/openapi-workflow-run.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/.github/workflows/openapi-workflow-run.yml b/.github/workflows/openapi-workflow-run.yml
index cb6d2ef84b..aaf8192be1 100644
--- a/.github/workflows/openapi-workflow-run.yml
+++ b/.github/workflows/openapi-workflow-run.yml
@@ -50,7 +50,16 @@ jobs:
path: openapi-report
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ secrets.GITHUB_TOKEN }}
+ - name: Check Result
+ id: check_file
+ run: |
+ if grep -q "No differences. Specifications are equivalent" ${{ steps.download_report.outputs.download-path }}/openapi-report.md; then
+ echo "comment=false" >> $GITHUB_ENV
+ else
+ echo "comment=true" >> $GITHUB_ENV
+ fi
- name: Push Comment
+ if: env.comment == 'true'
uses: thollander/actions-comment-pull-request@24bffb9b452ba05a4f3f77933840a6a841d1b32b # v3.0.1
with:
github-token: ${{ secrets.JF_BOT_TOKEN }}