Skip to content

Commit

Permalink
add condition to just when branch is not equal to main
Browse files Browse the repository at this point in the history
  • Loading branch information
AhmedBaset committed Jul 5, 2023
1 parent f6cc59f commit b1dda90
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/analyze_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b1dda90

Please sign in to comment.