Skip to content

Commit a5bc87e

Browse files
committed
Fix sonarcloud issues
1 parent e39d26b commit a5bc87e

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

.github/workflows/mkdocs_documentation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ on:
1010
jobs:
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 }}

.github/workflows/version_upgrade.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ on:
1515
project_version:
1616
value: ${{ jobs.upgrade-version.outputs.job_output_version}}
1717

18-
1918
jobs:
2019
upgrade-version:
2120
runs-on: ubuntu-latest
@@ -38,6 +37,12 @@ jobs:
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: |
@@ -52,5 +57,5 @@ jobs:
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

0 commit comments

Comments
 (0)