ci: Change names for release branches from rel-MAJOR.MINOR to vMAJOR
This naming scheme gives us the best support for readthedocs. References #2814
This commit is contained in:
@@ -4,13 +4,13 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- rel-*
|
- v[0-9]+
|
||||||
tags:
|
tags:
|
||||||
- v*
|
- v*
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- rel-*
|
- v[0-9]+
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|||||||
@@ -4,11 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- rel-*
|
- v[0-9]+
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- rel-*
|
- v[0-9]+
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ let
|
|||||||
}
|
}
|
||||||
''
|
''
|
||||||
trap "echo You need to be on the main branch or a release branch to proceed. Exiting ..." ERR
|
trap "echo You need to be on the main branch or a release branch to proceed. Exiting ..." ERR
|
||||||
[[ "$(git rev-parse --abbrev-ref HEAD)" =~ ^main$|^rel- ]]
|
[[ "$(git rev-parse --abbrev-ref HEAD)" =~ ^main$|^v[0-9]+$ ]]
|
||||||
trap "" ERR
|
trap "" ERR
|
||||||
|
|
||||||
trap "echo You have uncommitted changes in postgrest.cabal. Exiting ..." ERR
|
trap "echo You have uncommitted changes in postgrest.cabal. Exiting ..." ERR
|
||||||
|
|||||||
Reference in New Issue
Block a user