octokitted 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/octokitted.rb +4 -0
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6eb37191994ca5fbce98292fa7d110d1b8ba0cef9adbfdcee64ff9a4c86783c5
|
4
|
+
data.tar.gz: dddf0023f475c442215e2c73c0112782cbef093c4725d321e72d3bcff9edffaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 256b887a612783254b34ccabb3f4e8c348df57656f1562507453802bf37252214157164f79d45032ef8231e05ccc46b8b25f4a82e8f9850b17eff5ff5e7249c8
|
7
|
+
data.tar.gz: dc678d7dd0658e9ea8e0d8983b99f17784836140140b31e303b5718b7c39d465706db56061a9d26e79d48ea609b83599c6b2b61eed5330309f07a389ad0ce55d
|
data/lib/octokitted.rb
CHANGED
@@ -159,6 +159,10 @@ class Octokitted
|
|
159
159
|
# :return: A Hash of the GitHub event data or nil if not found
|
160
160
|
Contract Maybe[String] => Maybe[Hash]
|
161
161
|
def fetch_github_event(event_path)
|
162
|
+
if ENV.fetch("GITHUB_ACTIONS", nil).nil?
|
163
|
+
@log.debug("Not running in GitHub Actions - GitHub Event data not auto-hydrated")
|
164
|
+
return nil
|
165
|
+
end
|
162
166
|
unless event_path
|
163
167
|
@log.warn("GITHUB_EVENT_PATH env var not found")
|
164
168
|
return nil
|
data/lib/version.rb
CHANGED