reattempt
All checks were successful
/ lint (pull_request) Successful in 23s

This commit is contained in:
Antoine Martin 2024-08-11 21:27:30 -04:00
parent a6466c5753
commit 3add02dfbd
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -48,6 +48,16 @@ jobs:
- name: Deploy to repo
run: |
for apk in $FILELIST; do
echo $APK
branch=$(echo $apk | awk -F '/' '{print $2}')
arch=$(echo $apk | awk -F '/' '{print $3}')
name=$(echo $apk | awk -F '/' '{print $4}')
echo "Sending $name of arch $arch to $TARGET_REPO/$BASEBRANCH/$branch"
return=$(curl -s --user $FORGE_REPO_USER\:$FORGE_REPO_TOKEN --upload-file $apk $TARGET_REPO/$BASEBRANCH/$branch 2>&1)
if [ "$return" == "package file already exists" ]; then
echo "Package already exists, refreshing..."
curl -s --user $FORGE_REPO_USER\:$FORGE_REPO_TOKEN -X DELETE $TARGET_REPO/$BASEBRANCH/$branch/$arch/$name
curl -s --user $FORGE_REPO_USER\:$FORGE_REPO_TOKEN --upload-file $apk $TARGET_REPO/$BASEBRANCH/$branch
fi
done