Skip to content

Commit b3cf746

Browse files
authored
feat(workflow/e2e): allow workflow_dispatch trigger tests (#3109)
1 parent d90211f commit b3cf746

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/e2e.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,16 @@ 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+
workflow_dispatch:
1617

1718
concurrency:
1819
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1920
cancel-in-progress: true
2021

2122
jobs:
2223
test:
23-
# only run when e2e-test label is added or scheduled
24-
if: ${{ (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'e2e-test')) || github.event_name == 'schedule' }}
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' }}
2526
timeout-minutes: 40
2627
runs-on: ubuntu-latest
2728
steps:

0 commit comments

Comments
 (0)