Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepassio committed Dec 13, 2024
1 parent 715b555 commit 9c44848
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/perl-cpan-libraries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -601,15 +601,17 @@ jobs:
if [[ $dependency != perl* ]]; then
continue
else
# Update the dependency name to match the package name
dependency=$(echo $dependency | sed 's/(/-/g' | sed 's/)/-/g' | sed 's/::/-/g')
echo "Check dependency: $dependency"
# Update the dependency name to match the package name
dependency=$(echo $dependency | sed 's/(/-/g' | sed 's/)//g' | sed 's/::/-/g')
fi
elif [ "${{ matrix.package_extension }}" == "deb" ] && [[ $dependency != lib*-perl ]]; then
elif [[ "${{ matrix.package_extension }}" == "deb" && $dependency != lib*-perl ]]; then
continue
else
echo "Check dependency: $dependency"
fi
echo "Check dependency: $dependency"
# If the dependency has been built in the same workflow, install it
if [ -f ./$dependency*.${{ matrix.package_extension }} ]; then
if [[ -f ./$dependency*.${{ matrix.package_extension }} ]]; then
echo "Installing dependency: $dependency"
if [ "${{ matrix.package_extension }}" == "rpm" ]; then
error_output=$(dnf install -y ./$dependency*.rpm 2>&1) || { echo "$error_output" >> $error_log; echo "Error during installation of the dependency $dependency" >> $error_log; true; }
Expand All @@ -628,7 +630,7 @@ jobs:
fi
done
# If the file error_log exists and is not empty, the workflow is in error
if [ -s $error_log ]; then
if [[ -s $error_log ]]; then
cat $error_log
exit 1
fi
Expand Down

0 comments on commit 9c44848

Please sign in to comment.