Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
testmirror
waka-readme
提交
c469bfb7
W
waka-readme
项目概览
testmirror
/
waka-readme
通知
2
Star
401
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
waka-readme
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c469bfb7
编写于
7月 11, 2020
作者:
A
athul
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Readme Updates and Usages in Profile Repo
上级
6a5ebb1a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
37 addition
and
40 deletion
+37
-40
.github/workflows/main.yml
.github/workflows/main.yml
+0
-27
Dockerfile
Dockerfile
+1
-1
README.md
README.md
+36
-12
未找到文件。
.github/workflows/main.yml
已删除
100644 → 0
浏览文件 @
6a5ebb1a
# This is a basic workflow to help you get started with Actions
name
:
Waka Readme
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on
:
push
:
branches
:
[
master
]
schedule
:
# Runs at 12am UTC
-
cron
:
'
0
0
*
*
*'
jobs
:
build
:
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Update Readme
uses
:
athul/waka-readme@master
with
:
WAKATIME_API_KEY
:
${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN
:
${{ secrets.GH_TOKEN}}
Dockerfile
浏览文件 @
c469bfb7
...
...
@@ -5,4 +5,4 @@ ADD requirements.txt /requirements.txt
ADD
main.py /main.py
RUN
pip
install
-r
requirements.txt
CMD
python main.py
\ No newline at end of file
CMD
["python", "/main.py"]
\ No newline at end of file
README.md
浏览文件 @
c469bfb7
...
...
@@ -15,34 +15,58 @@ The lines will be our entrypoints for our metrics.
## Using it
-
Get a GitHub Access Token with a
`repo`
scope and save it in the Repo Secrets
`GH_TOKEN = <Your GitHub Access Token>`
-
Get your Wakatime API Key and save it as
`WAKATIME_API_KEY = <your wakatime API Key>`
in your Repository Secrets
That's it. The Action runs everyday at 00.00 UTC
----
Here is Sample Worflow File
### Profile Repository
If you're executing the workflow on your Profile Repository (
`<username>/<username>`
)
**You wouldn't need an GitHub Access Token since GitHub Actions already makes one for you.**
Here is a sample workflow file for you to get started,
```
yml
name
:
Waka Readme
on
:
schedule
:
# Runs at 12am UTC
-
cron
:
'
0
0
*
*
*'
jobs
:
update-readme
:
name
:
Update this repo's README
runs-on
:
ubuntu-latest
steps
:
-
uses
:
athul/waka-readme@master
with
:
WAKATIME_API_KEY
:
${{ secrets.WAKATIME_API_KEY }}
```
### Different Repository than Profile Repository
if you're executing the workflow on another repo other than
`<username>/<username>`
-
Get a GitHub Access Token with a
`repo`
scope and save it in the Repo Secrets
`GH_TOKEN = <Your GitHub Access Token>`
Here is Sample Worflow File for running it
```
yml
name
:
Waka Readme
on
:
push
:
branches
:
[
master
]
schedule
:
# Runs at 12am UTC
-
cron
:
'
0
0
*
*
*'
jobs
:
build
:
update-readme
:
name
:
Update Readme with Metrics
runs-on
:
ubuntu-latest
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
-
name
:
Update Readme
uses
:
athul/waka-readme@master
-
uses
:
athul/waka-readme@master
with
:
WAKATIME_API_KEY
:
${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN
:
${{ secrets.GH_TOKEN}}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录