Check branch name
This commit is contained in:
parent
f4ec8a7a49
commit
ce1bbbc445
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -4,16 +4,13 @@ name: CI
|
|||||||
# with a tag like v1.0.0 or v1.0.0-dev
|
# with a tag like v1.0.0 or v1.0.0-dev
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
- development
|
|
||||||
tags:
|
tags:
|
||||||
- v[0-9]+.[0-9]+.[0-9]+
|
- v[0-9]+.[0-9]+.[0-9]+
|
||||||
- v[0-9]+.[0-9]+.[0-9]+-[a-zA-Z]+
|
- v[0-9]+.[0-9]+.[0-9]+-[a-zA-Z]+
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
if: github.event.base_ref == 'refs/heads/master' || github.event.base_ref == 'refs/heads/development'
|
if: ${GITHUB_REF##*/} == 'refs/heads/master' || ${GITHUB_REF##*/} == 'refs/heads/development'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user