-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix changed files check for APIs in CI #2389
Conversation
You can see a successful run at https://github.com/Qiskit/documentation/actions/runs/12018028777/job/33501631056#step:19:7 |
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.
Awesome! Thank you!
"Read the file path for file paths and globs to check, like `docs/start/index.md`. Entries should be separated by a newline and should be valid file types (.md, .mdx, .ipynb).", | ||
"Read the file path for file paths and globs to check, like `docs/start/index.md`. " + | ||
"Entries should be separated by a newline and should be valid file types (.md, .mdx, .ipynb)." + | ||
"Mutually exclusive with the other args.", |
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.
Nice comment! Maybe in the future, we can refactor it and use .conflcts()
to error if --from-file
is used with another argument to avoid setting them unintentionally.
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.
I think, in 5b57701, we also need to remove the default: false
from the other arguments and let them be undefined
. Otherwise, they count as set by conflicts
and the option from-files
will always error
Co-authored-by: Arnau Casau <[email protected]>
#2389 (comment) Co-authored-by: Arnau Casau <[email protected]>
There were two issues:
--from-file
was being combined with the other args.echo
the changed files to save them could blow up the overall GitHub Action when there were too many files. Instead, we can use the changed-files action to write the output directly.