Compare only the report as there are version specific params in the JSON
This commit is contained in:
parent
73bc1578d9
commit
6855507901
@ -2,6 +2,7 @@ fastlane_require 'dotenv'
|
|||||||
fastlane_require 'jwt'
|
fastlane_require 'jwt'
|
||||||
fastlane_require 'base64'
|
fastlane_require 'base64'
|
||||||
fastlane_require 'net/sftp'
|
fastlane_require 'net/sftp'
|
||||||
|
fastlane_require 'json'
|
||||||
|
|
||||||
default_platform(:android)
|
default_platform(:android)
|
||||||
|
|
||||||
@ -213,7 +214,7 @@ platform :android do |options|
|
|||||||
end
|
end
|
||||||
|
|
||||||
desc "Check if tracking added in some dependency"
|
desc "Check if tracking added in some dependency"
|
||||||
private lane :checkTrackingAddedInDependency do |options|
|
lane :checkTrackingAddedInDependency do |options|
|
||||||
puts "Check if script file is latest"
|
puts "Check if script file is latest"
|
||||||
sh("wget -O current_iod-scan-apk.php https://gitlab.com/fdroid/issuebot/-/raw/master/modules/iod-scan-apk.php")
|
sh("wget -O current_iod-scan-apk.php https://gitlab.com/fdroid/issuebot/-/raw/master/modules/iod-scan-apk.php")
|
||||||
|
|
||||||
@ -239,9 +240,11 @@ platform :android do |options|
|
|||||||
FileUtils.rm_r("org.cryptomator_#{version}")
|
FileUtils.rm_r("org.cryptomator_#{version}")
|
||||||
|
|
||||||
puts "Check if something changed in the APK regarding the dependencies"
|
puts "Check if something changed in the APK regarding the dependencies"
|
||||||
same_files = FileUtils.compare_file("result.json", "current_result.json")
|
|
||||||
|
|
||||||
if same_files
|
report = JSON.parse(File.read("result.json"))["report"]
|
||||||
|
current_report = JSON.parse(File.read("current_result.json"))["report"]
|
||||||
|
|
||||||
|
if report.eql?(current_report)
|
||||||
puts "Dependencies unchanged"
|
puts "Dependencies unchanged"
|
||||||
FileUtils.rm("current_result.json")
|
FileUtils.rm("current_result.json")
|
||||||
else
|
else
|
||||||
|
@ -41,6 +41,11 @@ Deploy new version to server
|
|||||||
fastlane android deployToFDroid
|
fastlane android deployToFDroid
|
||||||
```
|
```
|
||||||
Deploy new version to F-Droid
|
Deploy new version to F-Droid
|
||||||
|
### android checkTrackingAddedInDependency
|
||||||
|
```
|
||||||
|
fastlane android checkTrackingAddedInDependency
|
||||||
|
```
|
||||||
|
Check if tracking added in some dependency
|
||||||
### android createGitHubDraftRelease
|
### android createGitHubDraftRelease
|
||||||
```
|
```
|
||||||
fastlane android createGitHubDraftRelease
|
fastlane android createGitHubDraftRelease
|
||||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user