mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
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.
This commit is contained in:
parent
511a87f5fc
commit
17ff770eaa
8
.github/workflows/push.yml
vendored
8
.github/workflows/push.yml
vendored
@ -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
|
||||
|
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user