-
Notifications
You must be signed in to change notification settings - Fork 451
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
chore: robustify PR release workflow #3051
Conversation
83f0760
to
e776021
Compare
the workflow is triggered not only by pull-request-CI-runs but also by others. These should be skipped. Also, no need to query the Github API to get the pull request number and head sha, they are part of the payload, it seems.
e776021
to
e4b28e8
Compare
|
If they are part of the payload, can't we directly access them in |
Yes, but it makes the |
Ok, fine with me |
}) | ||
core.setOutput('pullRequestNumber', reply.data.pull_requests[0].number) | ||
core.setOutput('sourceHeadSha', reply.data.pull_requests[0].head.sha) | ||
// console.log(`context.payload: ${JSON.stringify(context.payload, null, 2)}`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the comment stay in there? :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's useful for debugging to not have to look it up everytime :-)
(unless you mind)
Not robust enough, it seems :-( https://github.com/leanprover/lean4/actions/runs/7187252254/job/19574429098 |
classic undefined behavior |
Should have left the debugging output on :-) But that was this odd very old PR that got activated, maybe that played a role. I'll keep an eye open. |
the workflow is triggered not only by pull-request-CI-runs but also by
others. These should be skipped.
Also, no need to query the Github API to get the pull request number and
head sha, they are part of the payload, it seems.