Replies: 2 comments
-
GitHub Actions charges you based on the total time your workflows spend running, rounded up to the nearest minute. Even if a job is skipped because of a draft pull request, the workflow still starts and any time spent counts towards billing. Unfortunately, github doesn't provide a way to completely avoid charges for actions triggered by draft pull requests. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
Hi all,
So we have the setup below for a github action/workflow. It skips this job when the PR is a draft. Which is great. However, as the git workflow/action is still being activated, even if it only takes a few seconds, are we still getting changed for the partial minute?
As on here Git Billing it states "GitHub rounds the minutes and partial minutes each job uses up to the nearest whole minute."
If that is the case, then is there anywhere else on an account level perhaps that will allow us to disable actions completely on draft PRs, without incurring any charges?
Any advice/thoughts are much appreciated,
Regards
Rob
Beta Was this translation helpful? Give feedback.
All reactions