-
Notifications
You must be signed in to change notification settings - Fork 12
Feature: skip CI when docs-only label added #46
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
Feature: skip CI when docs-only label added #46
Conversation
37ce778 to
9be8686
Compare
|
/ok to test 9be8686 |
.github/workflows/cicd-main.yml
Outdated
| codecov-placeholder: | ||
| name: codecov/patch | ||
| needs: [pre-flight] | ||
| if: needs.pre-flight.outputs.docs_only == 'true' | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: codecov_placeholder | ||
| run: | | ||
| echo "This is a placeholder status check for when no tests are ran but the codecov status is expected" |
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 would recommend using MBridge's approach instead: https://github.com/NVIDIA-NeMo/Megatron-Bridge/blob/main/.github/workflows/cicd-main.yml#L181
For GitHub, a status check passes under two conditions: When it passes (trivial) and when it's being skipped. So in the scenarios where we skip the codecov-placeholder, GitHub will accept codecov/patch as a valid status check. If the actual job in line 206 failed, the skipped one will take precedence and GitHub will allow merging
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.
made changes, PTAL
6cc2093 to
76e0edc
Compare
|
/ok to test 76e0edc |
Signed-off-by: Pablo Garay <pagaray@nvidia.com>
Signed-off-by: Pablo Garay <pagaray@nvidia.com>
97895f2 to
9fad6c5
Compare
|
/ok to test 9fad6c5 |
9fad6c5 to
ac0310d
Compare
|
/ok to test ac0310d |
No description provided.