我怎么知道我在github action中运行工作流的总时间? [英] How do I know the total time I used to run workflow in 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屋!