Merge pull request 'fixes' (!2) from sidiesen/bugfix into main
Some checks failed
Rename the project from template / rename-project (push) Has been skipped
SonarQube Scan / SonarQube Trigger (push) Has been skipped
CI / linter (ubuntu-latest, 3.9) (push) Failing after 41s
CI / tests_linux (ubuntu-latest, 3.9) (push) Has been skipped

Reviewed-on: #2
This commit is contained in:
Simon Diesenreiter 2024-11-27 14:17:27 -08:00
commit 1e4f42df70

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!"