Skip to content

Commit 93dca82

Browse files
committed
add check for the use of from-pr in the easystack file
Signed-off-by: laraPPr <lara.peeters@ugent.be>
1 parent 9525939 commit 93dca82

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test-check_easystacks.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,19 @@ jobs:
6363
export EESSI_OS_TYPE=linux
6464
env | grep ^EESSI | sort
6565
66-
# check for missing installations if a file in the easystacks directory is changed
66+
# check the changed easystack files
6767
echo "check for missing installation in changed easystack files"
6868
easystack_files=(${CHANGED_EASYSTACKS})
69-
69+
70+
# check for missing installations if a file in the easystacks directory is changed
71+
# check easystack file for the use of `--from-pr`
7072
for easystack_file in ${easystack_files[@]}; do
73+
echo "check for the use of from-pr in ${easystack_file}"
74+
if grep -q "from-pr" ${easystack_file}; then
75+
echo "ERROR: from-pr is found in ${easystack_file} please use from-commit" >&2
76+
exit 1
77+
fi
78+
7179
echo "check missing installatios for ${easystack_file}..."
7280
./check_missing_installations.sh ${easystack_file} || ec=$?
7381
export eb_missing_out=$(./check_missing_installations.sh ${easystack_file})

0 commit comments

Comments
 (0)