Skip to content

Commit c0186ad

Browse files
committed
fix: trigger for e2e tests
1 parent 718f961 commit c0186ad

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/e2e.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@ jobs:
1515
e2e:
1616
runs-on: ubuntu-latest
1717
# Only run on workflow_dispatch (manual trigger), but always register check on PRs
18-
if: github.event_name == 'workflow_dispatch'
18+
if: github.event_name == 'workflow_dispatch' || github.ref_name == 'main'
1919

2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4
23-
with:
24-
# When triggered by comment, checkout the PR branch
25-
ref: ${{ github.event_name == 'issue_comment' && format('refs/pull/{0}/head', github.event.issue.number) || github.ref }}
2623

2724
- name: Set up Docker Buildx
2825
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435

0 commit comments

Comments
 (0)