Wakatime Stats Tracker 在我的 GitHub 个人资料 README.md 中不起作用
Wakatime Stats Tracker doesn't work in my GitHub profile README.md
所以我想在我的 Github 配置文件 README.md 中添加 Wakatime 部分,但它总是会出现相同的错误。首先,他没有像我希望的那样工作,因为我的标志(进入 .yml 文件)没有工作,这是我的 .yml 文件:
name: Waka Readme
on:
workflow_dispatch:
schedule:
# Runs at 05:00PM UTC = 00:00AM +7
- cron: '0 */4 * * *'
jobs:
update-readme:
name: Update this repo's README
runs-on: ubuntu-latest
steps:
- uses: anmol098/waka-readme-stats@master
with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SHOW_LINES_OF_CODE: "True"
SHOW_PROFILE_VIEWS: "False"
SHOW_COMMIT: "False"
SHOW_EDITORS: "True"
SHOW_DAYS_OF_WEEK: "False"
SHOW_LANGUAGE: "True"
SHOW_OS: "True"
SHOW_PROJECTS: "False"
SHOW_TIMEZONE: "False"
SHOW_LANGUAGE_PER_REPO: "False"
SHOW_SHORT_INFO: "False"
SHOW_LOC_CHART: "False"
LOCALE: en
您可以在此处找到 gh 存储库:https://github.com/anmol098/waka-readme-stats
这是我在 运行 .yml 文件时遇到的错误:
Traceback (most recent call last):
Exception Occurred Query failed to run by returning code of 401.
File "/main.py", line 497, in <module>
{
user_data = run_query(userInfoQuery) # Execute the query
viewer {
File "/main.py", line 156, in run_query
login
raise Exception("Query failed to run by returning code of {}. {}".format(request.status_code, query))
email
Exception: Query failed to run by returning code of 401.
id
{
}
viewer {
}
login
email
id
}
}
PS:我的 Wakatime 配置文件正在运行,我对 API 键没问题,你甚至可以在这里找到我的统计数据:https://wakatime.com/api/v1/users/branlito/stats/last_7_days
如果您是运行获得提交指标的行动[=11],您将需要一个GitHubAPI令牌,其中包含来自https://github.com/settings/tokens的回购和用户范围=]
在用户名中,您必须使用在 github
上使用的用户名
![Github Wakatime Stats](https://github-readme-stats.vercel.app/api/wakatime/?&USERNAME&layout=compact&&theme=default&link="https://www.github.com/USERNAME/")
所以我想在我的 Github 配置文件 README.md 中添加 Wakatime 部分,但它总是会出现相同的错误。首先,他没有像我希望的那样工作,因为我的标志(进入 .yml 文件)没有工作,这是我的 .yml 文件:
name: Waka Readme
on:
workflow_dispatch:
schedule:
# Runs at 05:00PM UTC = 00:00AM +7
- cron: '0 */4 * * *'
jobs:
update-readme:
name: Update this repo's README
runs-on: ubuntu-latest
steps:
- uses: anmol098/waka-readme-stats@master
with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
SHOW_LINES_OF_CODE: "True"
SHOW_PROFILE_VIEWS: "False"
SHOW_COMMIT: "False"
SHOW_EDITORS: "True"
SHOW_DAYS_OF_WEEK: "False"
SHOW_LANGUAGE: "True"
SHOW_OS: "True"
SHOW_PROJECTS: "False"
SHOW_TIMEZONE: "False"
SHOW_LANGUAGE_PER_REPO: "False"
SHOW_SHORT_INFO: "False"
SHOW_LOC_CHART: "False"
LOCALE: en
您可以在此处找到 gh 存储库:https://github.com/anmol098/waka-readme-stats
这是我在 运行 .yml 文件时遇到的错误:
Traceback (most recent call last):
Exception Occurred Query failed to run by returning code of 401.
File "/main.py", line 497, in <module>
{
user_data = run_query(userInfoQuery) # Execute the query
viewer {
File "/main.py", line 156, in run_query
login
raise Exception("Query failed to run by returning code of {}. {}".format(request.status_code, query))
email
Exception: Query failed to run by returning code of 401.
id
{
}
viewer {
}
login
email
id
}
}
PS:我的 Wakatime 配置文件正在运行,我对 API 键没问题,你甚至可以在这里找到我的统计数据:https://wakatime.com/api/v1/users/branlito/stats/last_7_days
如果您是运行获得提交指标的行动[=11],您将需要一个GitHubAPI令牌,其中包含来自https://github.com/settings/tokens的回购和用户范围=]
在用户名中,您必须使用在 github
上使用的用户名
![Github Wakatime Stats](https://github-readme-stats.vercel.app/api/wakatime/?&USERNAME&layout=compact&&theme=default&link="https://www.github.com/USERNAME/")