diff options
| author | Bond-009 <bond.009@outlook.com> | 2026-11-19 21:23:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-11-19 21:23:58 +0100 |
| commit | 13f690ef058a3426f66c82c2b60a6100b70588af (patch) | |
| tree | 2ab130fa19f1e4779ebc48d7a8e23d4548a597d3 | |
| parent | c47a9f9221826b1b45e1cd7d1be451a27cd0c067 (diff) | |
| parent | 45732e193a964171710cde6cc975e0a22ab8afa8 (diff) | |
Merge pull request #18419 from Bond-009/openapi_comment
Don't create OpenAPI comment when there are no changes
| -rw-r--r-- | .github/workflows/openapi-workflow-run.yml | 9 |
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 }} |
