Merge pull request 'bugfix' (#3) from sidiesen/test into main
All checks were successful
CI / linter (ubuntu-latest, 3.9) (push) Successful in 36s
Rename the project from template / rename-project (push) Successful in 29s
SonarQube Scan / SonarQube Trigger (push) Successful in 47s
CI / tests_linux (ubuntu-latest, 3.9) (push) Successful in 34s

Reviewed-on: #3
This commit is contained in:
Simon Diesenreiter 2024-11-13 08:12:06 -08:00
commit 48c2e3bc3f

View File

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