-
Notifications
You must be signed in to change notification settings - Fork 267
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
[CI] Github Action trigger condition optimized for cost saving #411
Conversation
6c52467
to
0b3da7b
Compare
Let me know if some trigger conditions are not considered or wrongly considered. |
can you check |
@@ -1,6 +1,7 @@ | |||
name: Release Build and Push | |||
|
|||
on: | |||
workflow_dispatch: # Allows manual trigger |
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.
this makes sense
.github/workflows/python-tests.yml
Outdated
@@ -1,11 +1,15 @@ | |||
name: Python Tests | |||
|
|||
on: | |||
workflow_dispatch: # Allows manual trigger |
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.
do we want manual trigger here?
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.
deleted
- 'go.mod' | ||
- 'go.sum' | ||
tags: | ||
- 'v*' |
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.
we don't push to tags (they are protected). This is something unnecessary I think.
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.
deleted
0b3da7b
to
3c4d13f
Compare
3c4d13f
to
83b4e14
Compare
tested. |
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.
/lgtm
We have an offline discussion. CI always build new manifest if there's a change merged in. We won't save cost on the post-submit, otherwise, it's hard to track back to the commit if we want to pin version for debug purpose.
github action trigger condition optimized
Pull Request Description
Github Action trigger condition is optimized. Now each test will only be triggered when the corresponding code is modified.
Related Issues
Resolves: #253
Important: Before submitting, please complete the description above and review the checklist below.