fix: publish action #1630
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check merge requirements | |
on: | |
pull_request: | |
jobs: | |
check-release-version: | |
timeout-minutes: 5 | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Run checks | |
# Update `ami-release.yaml` too if changing constraints. | |
run: | | |
SUFFIX=$(sed -E 's/postgres-version = "[0-9\.]+(.*)"/\1/g' common.vars.pkr.hcl) | |
if [[ -n $SUFFIX ]] ; then | |
echo "We no longer allow merging RC versions to develop." | |
exit 1 | |
fi |