Skip to content

Commit b1dda90

Browse files
committed
add condition to just when branch is not equal to main
1 parent f6cc59f commit b1dda90

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/analyze_comment.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ jobs:
1010
comment:
1111
runs-on: ubuntu-latest
1212
if: >
13-
${{ github.event.workflow_run.event == 'pull_request' &&
14-
github.event.workflow_run.conclusion == 'success' }}
13+
github.event.workflow_run.conclusion == 'success' &&
14+
github.event.workflow_run.name == 'Analyze Bundle' &&
15+
github.event.workflow_run.head_branch != 'main'
1516
steps:
1617
- name: Download base branch bundle stats
1718
uses: dawidd6/action-download-artifact@v2

0 commit comments

Comments
 (0)