add skin conditions, add docs
All checks were successful
Generate Map Previews for Switzerland25 Tournament / Full CI/CD Pipeline (push) Successful in 13s
All checks were successful
Generate Map Previews for Switzerland25 Tournament / Full CI/CD Pipeline (push) Successful in 13s
This commit is contained in:
@@ -68,6 +68,19 @@ jobs:
|
||||
|
||||
[ ! -f "$JSON_FILE" ] && exit 0
|
||||
|
||||
choose_skin() {
|
||||
local name="$1"
|
||||
case "$name" in
|
||||
*FM*) echo "OSCT_2023" ;;
|
||||
*HD*) echo "OSCT_2023" ;;
|
||||
*DT*) echo "OSCT_2023" ;;
|
||||
*EZ*) echo "OSCT_2023" ;;
|
||||
*TB*) echo "OSCT_2023" ;;
|
||||
*HR*) echo "OSCT_2023" ;;
|
||||
*) echo "OSCT_2023" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
for REPLAY in "${REPLAYS[@]}"; do
|
||||
[ ! -f "$REPLAY" ] && continue
|
||||
REPLAY_NAME=$(basename "$REPLAY" .osr)
|
||||
@@ -93,8 +106,10 @@ jobs:
|
||||
|
||||
mkdir -p "$OUT_VIDEO_DIR"
|
||||
|
||||
SKIN=$(choose_skin "$REPLAY_NAME")
|
||||
|
||||
xvfb-run -a "$DANSER_DIR/danser-cli" \
|
||||
-replay "$REPLAY" -record -skip -start=$START -skin="OSCT_2023" -end=$END -noupdatecheck \
|
||||
-replay "$REPLAY" -record -skip -start=$START -skin="$SKIN" -end=$END -noupdatecheck \
|
||||
-out="$REPLAY_NAME"
|
||||
|
||||
if [ -f "$DANSER_VIDEO_DIR/$REPLAY_NAME.mp4" ]; then
|
||||
@@ -118,7 +133,7 @@ jobs:
|
||||
run: |
|
||||
git config advice.addIgnoredFile false
|
||||
|
||||
git add outputs/
|
||||
git add -u outputs/
|
||||
|
||||
git commit -m "[ci skip] push back from pipeline" -q || echo "No changes to commit"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user