Skip to content

Github Action incorrect behavior #96

@hipstersmoothie

Description

@hipstersmoothie

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions