mirror of
https://github.com/mas-cli/mas
synced 2024-11-25 21:10:24 +00:00
⚠️ Update app and test paths
This commit is contained in:
parent
63f7bab082
commit
e1969906bf
1 changed files with 14 additions and 5 deletions
19
Dangerfile
19
Dangerfile
|
@ -1,13 +1,22 @@
|
||||||
|
#!/usr/bin/env ruby
|
||||||
|
#
|
||||||
|
# Dangerfile
|
||||||
|
# mas-cli
|
||||||
|
#
|
||||||
|
# https://danger.systems/guides/dangerfile.html
|
||||||
|
#
|
||||||
|
|
||||||
# Sometimes it's a README fix, or something like that - which isn't relevant for
|
# Sometimes it's a README fix, or something like that - which isn't relevant for
|
||||||
# including in a project's CHANGELOG for example
|
# including in a project's CHANGELOG for example
|
||||||
has_app_changes = !git.modified_files.grep(/App/).empty?
|
has_app_changes = !git.modified_files.grep(/MasKit/).empty?
|
||||||
# has_test_changes = !git.modified_files.grep(/AppTests/).empty?
|
has_test_changes = !git.modified_files.grep(/MasKitTests/).empty?
|
||||||
|
|
||||||
is_version_bump = git.modified_files.sort == [
|
is_version_bump = git.modified_files.sort == [
|
||||||
"App/mas-cli-Info.plist",
|
|
||||||
"AppTests/Info.plist",
|
|
||||||
"CHANGELOG.md",
|
"CHANGELOG.md",
|
||||||
"mas-cli.xcodeproj/project.pbxproj"
|
"mas/mas-Info.plist",
|
||||||
|
"mas-cli.xcodeproj/project.pbxproj",
|
||||||
|
"MasKit/SupportingFiles/Info.plist",
|
||||||
|
"MasKitTests/SupportingFiles/Info.plist"
|
||||||
].sort
|
].sort
|
||||||
message(":bookmark: Version bump!") if is_version_bump
|
message(":bookmark: Version bump!") if is_version_bump
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue