Skip to content

Commit 7fd10a9

Browse files
authored
feat(workflow/e2e): allow repository_dispatch trigger tests (#3110)
* feat(workflow/e2e): allow `workflow_dispatch` trigger tests * feat(workflow/e2e): allow `repository_dispatch` trigger tests * Revert "Merge branch 'master' into young/feat/workflow/e2e-repository-dispatch" This reverts commit c9976ae, reversing changes made to da47af6.
1 parent b3cf746 commit 7fd10a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/e2e.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
# This should be later than the update time of `apache/apisix:dev`
1414
# Ref: https://github.com/apache/apisix-docker/blob/master/.github/workflows/apisix_dev_push_docker_hub.yaml#L7C15-L7C16
1515
- cron: '0 2 * * *'
16+
repository_dispatch:
17+
types: [e2e-test]
1618
workflow_dispatch:
1719

1820
concurrency:
@@ -21,8 +23,8 @@ concurrency:
2123

2224
jobs:
2325
test:
24-
# only run when e2e-test label is added, scheduled, workflow_dispatch
25-
if: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'e2e-test')) || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
26+
# only run when e2e-test label is added, scheduled, workflow_dispatch, repository_dispatch
27+
if: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'e2e-test')) || github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' || github.event_name == 'repository_dispatch' }}
2628
timeout-minutes: 40
2729
runs-on: ubuntu-latest
2830
steps:

0 commit comments

Comments
 (0)