|
#!/bin/bash
|
|
|
|
set -eo pipefail
|
|
|
|
EVENT=$1
|
|
DIR=$2
|
|
FILE=$3
|
|
|
|
if [ -z "$FILE" ] || [[ "$FILE" == *.apk ]] || [[ "$FILE" == *.yml ]]; then
|
|
. /fdroid/bin/activate && fdroid update --clean -c --rename-apks --use-date-from-apk --delete-unknown
|
|
. /fdroid/bin/activate && fdroid deploy
|
|
fi
|
|
|