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

yuzhou pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 107a8118e5 Restrict some actions to be triggered only in the official 
repository (#7695)
107a8118e5 is described below

commit 107a8118e5f152f2918aa297c8ad383373b77e7d
Author: totalo <[email protected]>
AuthorDate: Thu Jun 13 10:15:04 2024 +0800

    Restrict some actions to be triggered only in the official repository 
(#7695)
    
    * build: Restrict the Snapshot Daily Release Automation action to be 
triggered only in the official repository
    
    * build: Restrict the E2E test for pull request action to be triggered only 
in the official repository
    
    * build: Restrict the PUSH-CI action to be triggered only in the official 
repository
    
    * build: update ci
---
 .github/workflows/pr-e2e-test.yml         | 7 +++++--
 .github/workflows/push-ci.yml             | 5 ++++-
 .github/workflows/snapshot-automation.yml | 1 +
 3 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/pr-e2e-test.yml 
b/.github/workflows/pr-e2e-test.yml
index d0371e3113..9082b6b222 100644
--- a/.github/workflows/pr-e2e-test.yml
+++ b/.github/workflows/pr-e2e-test.yml
@@ -13,10 +13,11 @@ env:
 
 jobs:
   docker:
-    runs-on: ubuntu-latest
     if: >
+      github.repository == 'apache/rocketmq' &&
       github.event.workflow_run.event == 'pull_request' &&
       github.event.workflow_run.conclusion == 'success'
+    runs-on: ubuntu-latest
     timeout-minutes: 30
     strategy:
       matrix:
@@ -74,7 +75,9 @@ jobs:
           path: rocketmq-docker/image-build-ci/versionlist/*
   
   list-version:
-    if: always()
+    if: >
+      github.repository == 'apache/rocketmq' &&
+      always()
     name: List version
     needs: [docker]
     runs-on: ubuntu-latest
diff --git a/.github/workflows/push-ci.yml b/.github/workflows/push-ci.yml
index ad29a57c8a..b679d56d2f 100644
--- a/.github/workflows/push-ci.yml
+++ b/.github/workflows/push-ci.yml
@@ -15,6 +15,7 @@ env:
 
 jobs:
   dist-tar:
+    if: github.repository == 'apache/rocketmq'
     name: Build dist tar
     runs-on: ubuntu-latest
     timeout-minutes: 30
@@ -79,7 +80,9 @@ jobs:
 
   
   list-version:
-    if: always()
+    if: >
+      github.repository == 'apache/rocketmq' && 
+      always()
     name: List version
     needs: [docker]
     runs-on: ubuntu-latest
diff --git a/.github/workflows/snapshot-automation.yml 
b/.github/workflows/snapshot-automation.yml
index 88f5f4e0cc..99855d3aa0 100644
--- a/.github/workflows/snapshot-automation.yml
+++ b/.github/workflows/snapshot-automation.yml
@@ -36,6 +36,7 @@ env:
 
 jobs:
   dist-tar:
+    if: github.repository == 'apache/rocketmq'
     name: Build dist tar
     runs-on: ubuntu-latest
     timeout-minutes: 30

Reply via email to