-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected failure in GitHub Action run #581
Comments
👋🏻 Yeah this is a confusing topic 😓 For the question, "which GHAs are executed? the ones on the main branch, or the ones on the PR branch, or both?"
Given your other points, I think the way forward is to switch to running GitHub actions in the context of the upstream repo when a PR from a fork comes in. This can be done by use the actions trigger
Does that make sense? Happy to help with a pull request to get this changed if you would like. |
I forgot about this issue :) Saw a different issue with the same GitHub Action today, which is sort of a collateral of this:
This is confusing. So yes, I think it is time to fix this issue :) @zkoppert sorry for all the notifications today. If you have time to help me configure the |
I think the other piece of this is specifying |
I think that may have actually worked! Looks like checks are passing here: https://github.com/InnerSourceCommons/InnerSourcePatterns/pull/579/checks |
Well we (and with that I mean me) are certainly learning something about git and GitHub Actions here :) You are right, the action ran successfully on the PR/branch that I am testing on. Where previously the action failed on this: It is now passing: f570a5a is the ref of the latest commit on `main. So I guess this is the expected behavior? Now that leads us to another issue though: Will keep looking ... but rather tomorrow. Thanks for all your help so far already Zack! |
I did run a test to confirm that the current configuration of the GHA really checks out Also from the pull_request_target docs:
So I guess that leaves us in a pickle, or whatever the English idiom is :) |
Maybe there is a way to break up this action into 2. The first part makes sure that everything builds on the branch so that you know the PR is good to merge, and then a second action detects that a merge to |
Yeah, possibly. There are two separate issues it seems:
|
In a recent pull request (#579), one of our GitHub Action (GHA) workflow runs failed.
Overview of failed GHAs:
Now when looking at the details of that workflow run, I noticed something interesting:
book.yml
file from this branch/PR (which comes from a fork)main
branch of the upstream. I am so sure about this as the main branch contains the config for a matrix build for this GHA, while the branch from the PR does not have that matrix build yet)So at the very least I am starting to wonder how GHAs really work. Seems like I might have some misunderstandings here.
My questions are:
main
branch, or the ones on the PR branch, or both?main
and PR contain different versions of the same GHA. what happens in that case?And lastly:
Why does this GHA run fail at all?
It seems like it is looking for a git ref
hive-mind-pattern-1
and cannot find it? Possibly because that ref only exists on the fork but not on the upstream?Do we have to configure the
actions/checkout
differently, so that it can find that git ref?Right now we use
ref: ${{ github.head_ref }}
, which is defined as:I am suspecting that we are checking out the upstream repo
InnerSourceCommons/InnerSourcePatterns
but then trying to point to a ref that does not exist on that upsream.Just not sure how one would configure this correctly?
The text was updated successfully, but these errors were encountered: