mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Conditionally delete old Bintray versions
Don't try deleting them if the token is not defined, which is the case for pull requests.
This commit is contained in:
+6
-3
@@ -115,9 +115,12 @@ deploy:
|
||||
appveyor_repo_tag: true
|
||||
|
||||
on_success:
|
||||
- ps: python "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py" -o loot -g loot -u wrinklyninja -b loot -p loot -t $env:bintray_auth_token -n 30
|
||||
- ps: python "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py" -o loot -g loot -u wrinklyninja -b loot -p loot-api -t $env:bintray_auth_token -n 30
|
||||
- ps: python "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py" -o loot -g loot -u wrinklyninja -b loot -p metadata-validator -t $env:bintray_auth_token -n 30
|
||||
- ps: |
|
||||
if ($env:bintray_auth_token) {
|
||||
python "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py" -o loot -g loot -u wrinklyninja -b loot -p loot -t $env:bintray_auth_token -n 30
|
||||
python "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py" -o loot -g loot -u wrinklyninja -b loot -p loot-api -t $env:bintray_auth_token -n 30
|
||||
python "$env:APPVEYOR_BUILD_FOLDER\delete_old_bintray_versions.py" -o loot -g loot -u wrinklyninja -b loot -p metadata-validator -t $env:bintray_auth_token -n 30
|
||||
}
|
||||
- ps: scripts\appveyor\update_masterlist_branches.ps1
|
||||
|
||||
on_finish:
|
||||
|
||||
Reference in New Issue
Block a user