Can you please give a clear explanation, maybe with an example, as to what does github
mean when saying that a plan includes 2000 actions minutes/month
? If I execute a git pull
does this count as one action? How actions connect to minutes? The time I take to pull some commits from a repo counts towards the minutes I have?
I am aware of SO answers (like this) that may tell someone how to calculate the time remaining but I don't really understand what an action is.
For example, say I have a repository with some python/js code and I start working on a new system. When I do a git pull
to clone my repository in this new system are there any actions in the backstage that are consumed? Do I consume any time from my plan? This is what I haven't clarified and needed maybe some simple examples to demonstrate. Thanks!
Actions is free only for public repositories. Developers can utilize only 2,000 minutes per month. Each workflow can run for up to 58 minutes (including queuing and execution time). Each workflow can run up to 100 actions (including build and other meta steps).
Billable job execution minutes are only shown for jobs run on private repositories that use GitHub-hosted runners and are rounded up to the next minute. There are no billable minutes when using GitHub Actions in public repositories or for jobs run on self-hosted runners.
Job execution time - Each job in a workflow can run for up to 6 hours of execution time. If a job reaches this limit, the job is terminated and fails to complete. Workflow run time - Each workflow run is limited to 35 days. If a workflow run reaches this limit, the workflow run is cancelled.
In the upper-right corner of any page, click your profile photo, then click Settings. In the "Access" section of the sidebar, click Billing and plans. Under "GitHub Actions", view details of your minutes used.
GitHub Actions is a feature provided by GitHub to create workflows which can run on triggering any GitHub event, for eg run the build of the project on creation of a pull request. GitHub actions can be configured by creation of a workflow in the form of a yaml file and placing it under .github/workflows
directory in your repo. This documentation provides more info regarding creating workflows.
For example, say I have a repository with some python/js code and I start working on a new system. When I do a git pull to clone my repository in a new system are there any actions in the backstage that are consumed? Do I consume any time from my plan?
No, running a git pull
to clone your repo doesn't use up any allocated action minutes.
GitHub actions only run if you have configured them to run by creating the workflows for specific GitHub events as mentioned here. When any actions are configured for a repo, the same can be viewed under the Actions
tab as shown below. Every GitHub action triggered shows up here.
Also, the current 2000 action minutes per month allocation is for the triggered workflows for private repos, not public repos. You can check your usage of the free action minutes for private repos at https://github.com/settings/billing, as mentioned in my SO answer here .
That relates to Github Actions, not things like pushing, pulling etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With