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

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,6 +18,11 @@
18
18
  string[] movedFromAssetPaths
19
19
  )
20
20
  {
21
+ if (Helpers.IsRunningOnGitHubActions)
22
+ {
23
+ return;
24
+ }
25
+
21
26
  bool anyChanged = Helpers.CachedLabels.Count == 0;
22
27
  InitializeCacheIfNeeded();
23
28
 
@@ -28,10 +28,28 @@
28
28
  StringComparer.OrdinalIgnoreCase
29
29
  );
30
30
 
31
+ public static bool IsRunningOnGitHubActions
32
+ {
33
+ get
34
+ {
35
+ string ghActions = Environment.GetEnvironmentVariable("GITHUB_ACTIONS");
36
+ return string.Equals(
37
+ ghActions?.Trim(),
38
+ bool.TrueString,
39
+ StringComparison.OrdinalIgnoreCase
40
+ );
41
+ }
42
+ }
43
+
31
44
  internal static string[] AllSpriteLabels;
32
45
 
33
46
  public static string[] GetAllSpriteLabelNames()
34
47
  {
48
+ if (IsRunningOnGitHubActions)
49
+ {
50
+ return Array.Empty<string>();
51
+ }
52
+
35
53
  #if UNITY_EDITOR
36
54
  if (AllSpriteLabels != null)
37
55
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc77.3",
3
+ "version": "2.0.0-rc77.4",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},
@@ -87,5 +87,6 @@
87
87
 
88
88
 
89
89
 
90
+
90
91
 
91
92