Description
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 the workflow_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:
Run Ana06/get-changed-files@v[2](https://github.com/AlexWaygood/cpython/actions/runs/4803232831/jobs/8547528105#step:8:2).2.0
with:
filter: Doc/**
token: ***
format: space-delimited
env:
pythonLocation: /opt/hostedtoolcache/Python/[3](https://github.com/AlexWaygood/cpython/actions/runs/4803232831/jobs/8547528105#step:8:3).11.3/x6[4](https://github.com/AlexWaygood/cpython/actions/runs/4803232831/jobs/8547528105#step:8:4)
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.11.3/x[6](https://github.com/AlexWaygood/cpython/actions/runs/4803232831/jobs/8547528105#step:8:6)4/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.[11](https://github.com/AlexWaygood/cpython/actions/runs/4803232831/jobs/8547528105#step:8:11).3/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.3/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.11.3/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.11.3/x64/lib
Error: This action only supports pull requests and pushes, workflow_dispatch events are not supported. Please submit an issue on this action's GitHub repo if you believe this in correct.
Base commit: undefined
Head commit: undefined
Error: The base and head commits are missing from the payload for this workflow_dispatch event. Please submit an issue on this action's GitHub repo.
Error: Not Found
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