From d883536e6faaf6ed340310ccf6610339e7682157 Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Sun, 21 Mar 2021 19:05:22 +0100 Subject: [PATCH] MDL-71154 ci: Prevent upstream branches and tags to be built Both for travis and GHA: - master and MOODLE_XXX_STABLE branches - any vX.Y.Z tag won't lead to a build anymore. --- .github/workflows/push.yml | 8 +++++++- .travis.yml | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index f063803e4a7..52e9bf70a41 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -1,6 +1,12 @@ name: Core -on: [push] +on: + push: + branches-ignore: + - master + - MOODLE_[0-9]+_STABLE + tags-ignore: + - v[0-9]+.[0-9]+.[0-9]+* env: php: 7.4 diff --git a/.travis.yml b/.travis.yml index 1e735a51fe5..7b38347af6d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,12 @@ services: addons: postgresql: "9.6" +branches: + except: + - master + - /MOODLE_[0-9]+_STABLE/ + - /^v[0-9]+\.[0-9]+\.[0-9]+.*/ + jobs: # Enable fast finish. # This will fail the build if a single job fails (except those in allow_failures). -- 2.11.4.GIT