com.wallstop-studios.unity-helpers 2.0.0-rc77.4 → 2.0.0-rc77.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,7 @@
18
18
  string[] movedFromAssetPaths
19
19
  )
20
20
  {
21
- if (Helpers.IsRunningOnGitHubActions)
21
+ if (Helpers.IsRunningInBatchMode || Helpers.IsRunningInContinuousIntegration)
22
22
  {
23
23
  return;
24
24
  }
@@ -28,16 +28,35 @@
28
28
  StringComparer.OrdinalIgnoreCase
29
29
  );
30
30
 
31
- public static bool IsRunningOnGitHubActions
31
+ public static bool IsRunningInBatchMode => Application.isBatchMode;
32
+
33
+ public static bool IsRunningInContinuousIntegration
32
34
  {
33
35
  get
34
36
  {
35
- string ghActions = Environment.GetEnvironmentVariable("GITHUB_ACTIONS");
36
- return string.Equals(
37
- ghActions?.Trim(),
38
- bool.TrueString,
39
- StringComparison.OrdinalIgnoreCase
40
- );
37
+ if (
38
+ !string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("GITHUB_ACTIONS"))
39
+ )
40
+ {
41
+ return true;
42
+ }
43
+
44
+ if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("CI")))
45
+ {
46
+ return true;
47
+ }
48
+
49
+ if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("JENKINS_URL")))
50
+ {
51
+ return true;
52
+ }
53
+
54
+ if (!string.IsNullOrWhiteSpace(Environment.GetEnvironmentVariable("GITLAB_CI")))
55
+ {
56
+ return true;
57
+ }
58
+
59
+ return false;
41
60
  }
42
61
  }
43
62
 
@@ -45,7 +64,7 @@
45
64
 
46
65
  public static string[] GetAllSpriteLabelNames()
47
66
  {
48
- if (IsRunningOnGitHubActions)
67
+ if (IsRunningInContinuousIntegration || IsRunningInBatchMode)
49
68
  {
50
69
  return Array.Empty<string>();
51
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc77.4",
3
+ "version": "2.0.0-rc77.5",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},
@@ -88,5 +88,6 @@
88
88
 
89
89
 
90
90
 
91
+
91
92
 
92
93