-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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
Running the Docs workflow via workflow_dispatch always fails #103884
Comments
Yep, we can't get the list of files changed in a PR, when not running as a PR :) Let's add some logic to skip this bit for non-PRs: cpython/.github/workflows/doc.yml Lines 57 to 70 in d45225b
|
hugovk
added a commit
that referenced
this issue
Apr 26, 2023
Fixed in #103889, thanks for the report! |
itamaro
pushed a commit
to itamaro/cpython
that referenced
this issue
Apr 26, 2023
Thanks for the lightning-quick fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Our Docs workflow file allows people to manually trigger the workflow on arbitrary branches in their GitHub fork of CPython:
cpython/.github/workflows/doc.yml
Lines 1 to 4 in 6c4124d
This is a useful feature that I like to use in order to test possible changes prior to filing a PR. However, on latest
main
, while it is still possible to run the Docs workflow via theworkflow_dispatch
, it now always fails if you try to do so. Example failing run on my GitHub fork: /~https://github.com/AlexWaygood/cpython/actions/runs/4803232831/jobs/8547528105.The error occurs in the "Get list of changed files" step here (added to the workflow in #102513):
cpython/.github/workflows/doc.yml
Lines 57 to 62 in 6c4124d
The error message is:
While this isn't a huge problem, it would be nice if we could continue to be able to run the Docs workflow via the
workflow_dispatch
trigger without it failing.Cc. @hugovk, @ezio-melotti, @CAM-Gerlach
Linked PRs
The text was updated successfully, but these errors were encountered: