Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CI GitHub actions not pulling the branch from a fork to test and build the PR coming from a fork #979

Copy link
Copy link
Closed
@exequiel09

Description

@exequiel09
Issue body actions

Description

In #974 CI action, It tries to pull my branch in the main repo instead of the forked repo. See the logs.

I think the line in the GitHub action below only works when someone from the organization creates a pull request but not from someone outside the organization who has to fork the repo to create a PR.

ref: ${{ github.event.pull_request.head.ref }}

Steps to Reproduce the Issue

Fork the repo. Create a PR and let the maintainer run the CI for first time contributors to this repo like me 😅.

Notes

I think we need to use github.ref or $GITHUB_REF to get the ref to the PR from forks. Other instances of happening this is in #678 (logs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.