-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
Description
Bug
Github actions run from a PR do not have the correct env information.
run env-ci in a github action. The PR number is not present
this library uses GITHUB_EVENT_NAME https://github.com/pvdlg/env-ci/blob/master/services/github.js#L27 to check if it is a PR.
Their docs say that GITHUB_EVENT_NAME is set to pull_request when:
Triggered when a pull request is assigned, unassigned, labeled, unlabeled, opened, edited, closed, reopened, synchronize, ready_for_review, locked, unlocked or when a pull request review is requested or removed. See below to learn how this event works with forked repositories.
This variable in my action is set to push.
Environment:
scherroman and josh-barker