mirror of
https://github.com/egor-white/zaprett.git
synced 2026-01-10 20:49:52 +05:00
Update workflow.yml
This commit is contained in:
6
.github/workflows/workflow.yml
vendored
6
.github/workflows/workflow.yml
vendored
@@ -40,9 +40,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
unzip -o zapret-latest.zip
|
unzip -o zapret-latest.zip
|
||||||
ZAPRET_DIR=$(find . -maxdepth 1 -type d -name 'zapret-v*' | head -n 1)
|
ZAPRET_DIR=$(find . -maxdepth 1 -type d -name 'zapret-v*' | head -n 1)
|
||||||
if [ -n "$ZAPRET_DIR" ] && [ -d "$ZAPRET_DIR" ]; then
|
if [ "$(ls -A "$ZAPRET_DIR")" ]; then
|
||||||
echo "Found zapret directory: $ZAPRET_DIR"
|
|
||||||
mv "$ZAPRET_DIR"/* zapret-latest/
|
mv "$ZAPRET_DIR"/* zapret-latest/
|
||||||
|
else
|
||||||
|
echo "Warning: $ZAPRET_DIR is empty"
|
||||||
|
fi
|
||||||
rm -rf "${ZAPRET_DIR}"
|
rm -rf "${ZAPRET_DIR}"
|
||||||
rm zapret-latest.zip
|
rm zapret-latest.zip
|
||||||
- name: Debug
|
- name: Debug
|
||||||
|
|||||||
Reference in New Issue
Block a user