This is an automated email from the ASF dual-hosted git repository.

young pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new c65fcb8f2 fix(workflow): scheduled test (#3083)
c65fcb8f2 is described below

commit c65fcb8f2f80340242ecc0179aac2218bcb4a3da
Author: YYYoung <[email protected]>
AuthorDate: Thu May 29 11:09:13 2025 +0800

    fix(workflow): scheduled test (#3083)
---
 .github/workflows/e2e.yml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml
index 50c15882b..ad9026f49 100644
--- a/.github/workflows/e2e.yml
+++ b/.github/workflows/e2e.yml
@@ -21,13 +21,14 @@ concurrency:
 jobs:
   test:
     # only run when e2e-test label is added or scheduled
-    if: ${{ contains(github.event.pull_request.labels.*.name, 'e2e-test') || 
github.event_name == 'schedule' }}
+    if: ${{ (github.event_name == 'pull_request' && 
contains(github.event.pull_request.labels.*.name, 'e2e-test')) || 
github.event_name == 'schedule' }}
     timeout-minutes: 40
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v4
 
       - name: Get PR Labels
+        if: ${{ github.event_name == 'pull_request' }}
         id: get-labels
         uses: actions/github-script@v6
         with:
@@ -35,6 +36,7 @@ jobs:
             const labels = context.payload.pull_request.labels.map(label => 
label.name);
             core.setOutput("labels", labels.join(","));
       - name: Set image label as environment variable
+        if: ${{ github.event_name == 'pull_request' }}
         run: |
           export LABELS=${{ steps.get-labels.outputs.labels }}
           echo "LABELS=${LABELS}" >> $GITHUB_ENV

Reply via email to