fix bug
All checks were successful
SonarQube Scan / SonarQube Trigger (push) Successful in 1m37s
CI / linter (9.0.X, ubuntu-latest) (push) Successful in 1m39s
CI / tests_linux (9.0.X, ubuntu-latest) (push) Successful in 2m13s

This commit is contained in:
Simon Diesenreiter 2024-11-27 22:33:49 +01:00
parent a93dd5d69c
commit 1658f07483

View File

@ -35,18 +35,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Python - name: Set up dotnet
uses: actions/setup-python@v4 uses: actions/setup-dotnet@v4
with: with:
python-version: '3.x' dotnet-version: '9.0.X'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Check version match - name: Check version match
run: | run: |
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_'') REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_'')
if [ "$(cat $REPOSITORY_NAME/$REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then if [ "$(cat DotnetTestLib/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then
echo "Version matches successfully!" echo "Version matches successfully!"
else else
echo "Version must match!" echo "Version must match!"