Добавлено условие для проверки установки cifs-utils и rsync перед их установкой
This commit is contained in:
@@ -32,7 +32,12 @@ jobs:
|
||||
run: dotnet publish backend/src/Tnsu.ApprovalRoute.Api/Tnsu.ApprovalRoute.Api.csproj -c Release -o "$LOCAL_PUBLISH"
|
||||
|
||||
- name: Install cifs-utils
|
||||
run: sudo apt-get update && sudo apt-get install -y cifs-utils rsync
|
||||
run: |
|
||||
if command -v mount.cifs >/dev/null 2>&1 && command -v rsync >/dev/null 2>&1; then
|
||||
echo "cifs-utils and rsync already installed, skipping apt-get"
|
||||
else
|
||||
sudo apt-get update && sudo apt-get install -y cifs-utils rsync
|
||||
fi
|
||||
|
||||
- name: Mount IIS share
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user