Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are github actions minutes/month?

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!

like image 591
pebox11 Avatar asked Jul 04 '20 01:07

pebox11


People also ask

What are GitHub action minutes?

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).

What is billable time in GitHub Actions?

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.

How long can a GitHub action last?

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.

How do I see action minutes in GitHub?

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.


Video Answer


2 Answers

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.

enter image description 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 .

like image 102
Madhu Bhat Avatar answered Oct 19 '22 22:10

Madhu Bhat


That relates to Github Actions, not things like pushing, pulling etc.

like image 37
Bart Kiers Avatar answered Oct 19 '22 21:10

Bart Kiers