try to fix
All checks were successful
/ build-x86_64 (pull_request) Successful in 41s
/ deploy (pull_request) Successful in 26s
/ lint (pull_request) Successful in 23s

This commit is contained in:
Antoine Martin 2024-08-11 21:25:19 -04:00
parent 38f325a36e
commit a6466c5753
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -48,16 +48,6 @@ jobs:
- name: Deploy to repo
run: |
for apk in $FILELIST; do
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
echo $APK
done