Skip to content

Commit 880c9e4

Browse files
authored
Merge pull request #24 from cvmfs-contrib/wdconinc-patch-1
feat: add logging groups
2 parents d4641d0 + 93984f6 commit 880c9e4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

setup-cvmfs.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,23 @@
44
if [ "$(uname)" == "Linux" ]; then
55
# download from cache
66
if [ -n "${APT_CACHE}" ]; then
7+
echo "::group::Using cache"
78
echo "Copying cache from ${APT_CACHE} to system locations..."
89
mkdir -p ${APT_CACHE}/archives/ ${APT_CACHE}/lists/
910
sudo cp -r ${APT_CACHE}/archives /var/cache/apt
1011
sudo cp -r ${APT_CACHE}/lists /var/lib/apt
12+
echo "::endgroup::"
1113
fi
1214
# install cvmfs release package
15+
echo "::group::Installing cvmfs-release"
1316
APT_ARCHIVES=/var/cache/apt/archives/
1417
if [ ! -f ${APT_ARCHIVES}/cvmfs-release-latest_all.deb ] ; then
1518
sudo curl -L -o ${APT_ARCHIVES}/cvmfs-release-latest_all.deb ${CVMFS_UBUNTU_DEB_LOCATION}
1619
fi
1720
sudo dpkg -i ${APT_ARCHIVES}/cvmfs-release-latest_all.deb
21+
echo "::endgroup::"
1822
# install cvmfs package
23+
echo "::group::Installing cvmfs"
1924
sudo apt-get -q update
2025
sudo apt-get -q -y install cvmfs
2126
# install cvmfs config package
@@ -25,12 +30,15 @@ if [ "$(uname)" == "Linux" ]; then
2530
sudo curl -L -o ${APT_ARCHIVES}/cvmfs-config.deb ${CVMFS_CONFIG_PACKAGE}
2631
sudo dpkg -i ${APT_ARCHIVES}/cvmfs-config.deb
2732
fi
33+
echo "::endgroup::"
2834
# update cache (avoid restricted partial directories)
2935
if [ -n "${APT_CACHE}" ]; then
36+
echo "::group::Updating cache"
3037
echo "Copying cache from system locations to ${APT_CACHE}..."
3138
mkdir -p ${APT_CACHE}/archives/ ${APT_CACHE}/lists/
3239
cp /var/cache/apt/archives/*.deb ${APT_CACHE}/archives/
3340
cp /var/lib/apt/lists/*_dists_* ${APT_CACHE}/lists/
41+
echo "::endgroup::"
3442
fi
3543
elif [ "$(uname)" == "Darwin" ]; then
3644
# Warn about the phasing out of MacOS support for this action
@@ -50,14 +58,15 @@ fi
5058

5159
${ACTION_PATH}/createConfig.sh
5260

53-
echo "Run cvmfs_config setup"
61+
echo "::group::Running cvmfs_config setup"
5462
sudo cvmfs_config setup
5563
retCongif=$?
5664
if [ $retCongif -ne 0 ]; then
5765
echo "!!! github-action-cvmfs FAILED !!!"
5866
echo "cvmfs_config setup exited with ${retCongif}"
5967
exit $retCongif
6068
fi
69+
echo "::endgroup::"
6170

6271

6372
if [ "$(uname)" == "Darwin" ]; then

0 commit comments

Comments
 (0)