Skip to content
Snippets Groups Projects
Commit 24e6ad76 authored by Damian Alvarez's avatar Damian Alvarez
Browse files

Merge branch 'lol-gitlab' into '2022'

{CI} Sidestep GitLab bug and restore old behavior for push to production branches

See merge request hps-public/easybuild-repository!875
parents d96b612d 59da4aae
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,7 @@ workflow:
when: never
- if: '$CI_COMMIT_BRANCH'
variables:
TARGET_BRANCH: 2022
TARGET_BRANCH: '2022'
check_style:
script:
......@@ -30,7 +30,11 @@ check_style:
- export EASYBUILD_MODULE_NAMING_SCHEME="FlexibleCustomHierarchicalMNS"
- faulty=""
- export TIP_COMMIT=$CI_COMMIT_SHA
- if [ "x$CI_COMMIT_BRANCH" = "x$TARGET_BRANCH" ]; then
- export BASE_COMMIT=$CI_COMMIT_BEFORE_SHA
- else
- export BASE_COMMIT=$(git merge-base "$TIP_COMMIT" "origin/$TARGET_BRANCH")
- fi
- printf "Checking changes between base %s (%s) and tip %s (%s)\n" "$BASE_COMMIT" "$(git describe --all --exclude pipeline/* $BASE_COMMIT 2> /dev/null)" "$TIP_COMMIT" "$(git describe --all --exclude pipeline/* $TIP_COMMIT 2> /dev/null)"
- eb_list=$(git diff-tree --no-commit-id -r "$BASE_COMMIT" "$TIP_COMMIT" | awk '$5 ~ /^M|^A/ && $6 ~ /eb$/ {print($6)}')
- echo "List of files to be checked $eb_list"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment