From 45732e193a964171710cde6cc975e0a22ab8afa8 Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Tue, 13 Oct 2026 20:41:57 +0200 Subject: Don't create OpenAPI comment when there are no changes --- .github/workflows/openapi-workflow-run.yml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to '.github') 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 }} -- cgit v1.2.3