From b59e6b1d064485a3afe24a4ffa5dc0f7d2853f01 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 12 Jul 2022 11:03:59 +0300 Subject: [PATCH] ci: do periodic runs only in the main V repository (not in forks) --- .github/workflows/periodic.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/periodic.yml b/.github/workflows/periodic.yml index 32eddaa8f..80437e187 100644 --- a/.github/workflows/periodic.yml +++ b/.github/workflows/periodic.yml @@ -7,6 +7,7 @@ on: jobs: network-tests-ubuntu: runs-on: ubuntu-20.04 + if: github.event.ref == 'refs/heads/master' && github.event.repository.full_name == 'vlang/v' timeout-minutes: 30 env: V_CI_PERIODIC: 1 @@ -24,6 +25,7 @@ jobs: network-tests-macos: runs-on: macOS-latest + if: github.event.ref == 'refs/heads/master' && github.event.repository.full_name == 'vlang/v' timeout-minutes: 30 env: V_CI_PERIODIC: 1 @@ -42,6 +44,7 @@ jobs: network-windows-msvc: runs-on: windows-2019 + if: github.event.ref == 'refs/heads/master' && github.event.repository.full_name == 'vlang/v' timeout-minutes: 30 env: V_CI_PERIODIC: 1 -- 2.30.2