fixes
Some checks failed
Rename the project from template / rename-project (push) Has been skipped
SonarQube Scan / SonarQube Trigger (pull_request) Has been skipped
CI / linter (ubuntu-latest, 3.9) (pull_request) Failing after 16s
CI / tests_linux (ubuntu-latest, 3.9) (pull_request) Has been skipped

This commit is contained in:
Simon Diesenreiter 2024-11-27 23:15:39 +01:00
parent f74c2a5f6c
commit 772aed251d

View File

@ -42,7 +42,7 @@ jobs:
- name: Check version match
run: |
REPOSITORY_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F '/' '{print $2}' | tr '-' '_' | tr '[:upper:]' '[:lower:]')
if [ "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME:1}" ] ; then
if [ "$(cat $REPOSITORY_NAME/VERSION)" = "${GITHUB_REF_NAME}" ] ; then
echo "Version matches successfully!"
else
echo "Version must match!"