diff --git a/.github/workflows/analyze_comment.yml b/.github/workflows/analyze_comment.yml index 5a3047cfc..cfb9b518d 100644 --- a/.github/workflows/analyze_comment.yml +++ b/.github/workflows/analyze_comment.yml @@ -10,8 +10,9 @@ jobs: comment: runs-on: ubuntu-latest if: > - ${{ github.event.workflow_run.event == 'pull_request' && - github.event.workflow_run.conclusion == 'success' }} + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.name == 'Analyze Bundle' && + github.event.workflow_run.head_branch != 'main' steps: - name: Download base branch bundle stats uses: dawidd6/action-download-artifact@v2