.
This commit is contained in:
@@ -9,11 +9,14 @@ on:
|
|||||||
paths:
|
paths:
|
||||||
- "cars/**" # Only run if archives in cars/ change
|
- "cars/**" # Only run if archives in cars/ change
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prepare-server-content:
|
||||||
|
container:
|
||||||
|
volumes:
|
||||||
|
- $HOME/assetto-corsa/assetto/content:/content
|
||||||
env:
|
env:
|
||||||
GIT_DEFAULT_HASH: sha1
|
GIT_DEFAULT_HASH: sha1
|
||||||
|
|
||||||
jobs:
|
|
||||||
prepare-server-content:
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -25,9 +25,6 @@ find "$SOURCE_ROOT" -type f \( -name "*.zip" -o -name "*.7z" -o -name "*.rar" \)
|
|||||||
# Extract contents
|
# Extract contents
|
||||||
7z x "$archive" -o"$temp_dir" -y > /dev/null
|
7z x "$archive" -o"$temp_dir" -y > /dev/null
|
||||||
|
|
||||||
echo "Extracted to: $temp_dir"
|
|
||||||
tree "$temp_dir" # DEBUG
|
|
||||||
|
|
||||||
# FILTERING LOGIC
|
# FILTERING LOGIC
|
||||||
find "$temp_dir/$car_name" -type f \
|
find "$temp_dir/$car_name" -type f \
|
||||||
-not -path "**/skins/*/livery.png" \
|
-not -path "**/skins/*/livery.png" \
|
||||||
|
|||||||
Reference in New Issue
Block a user