Revert "Hardcode swiftlint 0.46.0 (#4953)" (#4962)

This reverts commit 736f2fa165.
This commit is contained in:
Mikhail Timofeev
2022-01-27 23:13:11 +03:00
committed by GitHub
parent ec3c8b5326
commit abc6b7b793

View File

@@ -2,9 +2,7 @@
source ~/utils/utils.sh
echo "Install SwiftLint"
# Temporary hardcode swiftlint version due to the issues with installer https://github.com/realm/SwiftLint/issues/3815
swiftlintUrl="https://github.com/realm/SwiftLint/releases/download/0.46.0/SwiftLint.pkg"
#swiftlintUrl=$(curl -H "Authorization: token $API_PAT" -s "https://api.github.com/repos/realm/SwiftLint/releases/latest" | jq -r '.assets[].browser_download_url | select(contains("SwiftLint.pkg"))')
swiftlintUrl=$(curl -H "Authorization: token $API_PAT" -s "https://api.github.com/repos/realm/SwiftLint/releases/latest" | jq -r '.assets[].browser_download_url | select(contains("SwiftLint.pkg"))')
download_with_retries $swiftlintUrl "/tmp" "SwiftLint.pkg"
sudo installer -pkg /tmp/SwiftLint.pkg -target /
rm -rf /tmp/SwiftLint.pkg