fixed it
Some checks failed
SonarQube Scan / SonarQube Trigger (push) Has been cancelled
CI / tests_linux (9.0.X, ubuntu-latest) (push) Has been cancelled
CI / linter (9.0.X, ubuntu-latest) (push) Has been cancelled

This commit is contained in:
Simon Diesenreiter 2024-11-27 23:10:43 +01:00
parent 885c885f46
commit 24547f5324

View File

@ -42,9 +42,7 @@ jobs:
- 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 '-' '_')
echo "${GITHUB_REF_NAME:1}" if [ "$(cat DotnetTestLib/VERSION)" = "${GITHUB_REF_NAME}" ] ; then
cat DotnetTestLib/VERSION
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!"