10000 chore: add a CI check for the release version · gofullthrottle/postgres@7080821 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7080821

Browse files
committed
chore: add a CI check for the release version
1 parent 7491e5a commit 7080821

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check merge requirements
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
8+
check-release-version:
9+
timeout-minutes: 5
10+
steps:
11+
- name: Checkout Repo
12+
uses: actions/checkout@v3
13+
14+
run: |
15+
SUFFIX=$(sed -E 's/postgres-version = "[0-9\.]+(.*)"/\1/g' common.vars.pkr.hcl)
16+
if [[ -n $SUFFIX ]] ; then
17+
echo "We no longer allow merging RC versions to develop."
18+
exit 1
19+
fi

0 commit comments

Comments
 (0)
0