File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010jobs :
1111 create-docs :
1212 runs-on : ubuntu-latest
13- env :
1413 if : ${{ lower(inputs.project_version) == upper(inputs.project_version) }}
1514 env :
1615 VERSION : ${{ inputs.project_version }}
Original file line number Diff line number Diff line change 1515 project_version :
1616 value : ${{ jobs.upgrade-version.outputs.job_output_version}}
1717
18-
1918jobs :
2019 upgrade-version :
2120 runs-on : ubuntu-latest
3837 uses : abatilo/actions-poetry@v2
3938 with :
4039 poetry-version : 1.4.2
40+ - name : Validate RELEASE_TYPE
41+ run : |
42+ if ! [[ "$RELEASE_TYPE" =~ ^(major|minor|patch)$ ]]; then
43+ echo "Invalid RELEASE_TYPE: $RELEASE_TYPE" >&2
44+ exit 1
45+ fi
4146 - name : bump version and update template_input.yaml
4247 id : get-version
4348 run : |
5257 PROJECT_VERSION=$(poetry version --short)
5358 git add template_input.yaml
5459 git add pyproject.toml
55- git commit -m "bump " $RELEASE_TYPE" version: ${{ steps.get-version.outputs.PROJECT_VERSION }}"
56- git push
60+ git commit -m "bump $RELEASE_TYPE version: ${{ steps.get-version.outputs.PROJECT_VERSION }}"
61+ git push
You can’t perform that action at this time.
0 commit comments