You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by li...@apache.org on 2023/09/07 12:07:26 UTC

[arrow-adbc] branch main updated: ci: don't run cron actions on forks (#1040)

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

lidavidm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-adbc.git


The following commit(s) were added to refs/heads/main by this push:
     new f03a44e1 ci: don't run cron actions on forks (#1040)
f03a44e1 is described below

commit f03a44e11f285b67ceb5958e2d8428a72b6657b9
Author: David Li <li...@gmail.com>
AuthorDate: Thu Sep 7 08:07:20 2023 -0400

    ci: don't run cron actions on forks (#1040)
    
    Fixes #1033.
    
    ---------
    
    Co-authored-by: Sutou Kouhei <ko...@cozmixng.org>
---
 .github/workflows/nightly-verify.yml | 2 ++
 .github/workflows/packaging.yml      | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/.github/workflows/nightly-verify.yml b/.github/workflows/nightly-verify.yml
index 9d9f1a25..45279e5d 100644
--- a/.github/workflows/nightly-verify.yml
+++ b/.github/workflows/nightly-verify.yml
@@ -27,6 +27,8 @@ permissions:
 
 jobs:
   source:
+    # For cron: only run on the main repo, not forks
+    if: github.event_name != 'schedule' || github.repository == 'apache/arrow-adbc'
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v3
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index f677e740..3c0b8762 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -58,6 +58,8 @@ jobs:
   source:
     name: Source
     runs-on: ubuntu-latest
+    # For cron: only run on the main repo, not forks
+    if: github.event_name != 'schedule' || github.repository == 'apache/arrow-adbc'
     steps:
       - uses: actions/checkout@v3
         with: