Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidd6 committed Sep 23, 2019
1 parent ca03569 commit ecc7557
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@
# Event
json = File.read(event_path)
payload = JSON.parse(json)
pr_number = payload["pull_request"]["number"]
pr_head_branch = payload["pull_request"]["head"]["ref"]
pr = payload["pull_request"]
pr_number = pr["number"] unless pr.nil?
pr_head_branch = pr["head"]["ref"] unless pr.nil?

# Inputs
be_kind = ENV["INPUT_BE_KIND"]
Expand Down

0 comments on commit ecc7557

Please sign in to comment.