feat: Allow for disk size in ec2 instances #173
Workflow file for this run
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 Semantic Versioning | |
on: | |
- pull_request | |
jobs: | |
version-check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Check version | |
id: check-version | |
run: | | |
if [[ $(git diff origin/main -- VERSION | wc -c) -eq 0 ]] | |
then | |
echo "VERSION file must be updated" | |
exit 1 | |
fi | |
rx='^1!([0-9]+\.){0,2}(\*|[0-9]+)$' | |
version=$(cat VERSION) | |
if [[ ! $version =~ $rx ]]; then | |
echo "VERSION must be in 1!<major>.<minor>.<patch> format, not $version" | |
exit 1 | |
fi |