我怎么知道我在github action中运行工作流的总时间? [英] How do I know the total time I used to run workflow in github action?

查看:725
本文介绍了我怎么知道我在github action中运行工作流的总时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次创建PR或进行提交时,都会运行一些工作流程。
但是由于我有一个私人仓库,我在Github Actions上运行工作流的时间仅为2000分钟/月,所以我想跟踪所用的时间。我怎么知道Github提供的2000分钟免费时间内我用了多少时间?

Each time I create a PR or make commits, I have some workflows running. But since I have a private repo and I get only 2000 min/month for running workflows on Github Actions, I wanted to track the time used. How do I know how much total time I used out of 2000 free min that Github provides?

在Github UI中是否有地方可以看到您使用的总时间/剩余总时间?

Is there a place in Github UI that you see the total time you used/ total time remaining?

推荐答案

最好的方法是在主要操作标签中查看:

The best you can get is the view in the main actions tab:

不幸的是,没有简单的总和/月或类似的东西被添加为

Sadly, no simple sum/month or anything like that was added as of yet.

您可以尝试的下一个最佳方法是启动一个脚本,为您从页面dom中收集这些值。

The next best thing you could try is to whip up a script that collects these values from the page's dom for you.

这篇关于我怎么知道我在github action中运行工作流的总时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆