Changes Token name

This commit is contained in:
athul 2020-07-10 09:45:37 +05:30
parent 30417a50d4
commit 66fb6bbc52
3 changed files with 30 additions and 1 deletions

View File

@ -23,5 +23,5 @@ jobs:
uses: athul/waka-readme@master uses: athul/waka-readme@master
with: with:
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }} WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
GH_TOKEN: ${{ secrets.GIHUB_TOKEN}} GH_TOKEN: ${{ secrets.GH_TOKEN}}

View File

@ -19,3 +19,31 @@ The lines will be our entrypoints for our metrics.
- Get your Wakatime API Key and save it as `WAKATIME_API_KEY = <your wakatime API Key>` in your Repository Secrets - 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 That's it. The Action runs everyday at 00.00 UTC
----
Here is Sample Worflow File
```yml
name: Waka Readme
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}}
```

View File

@ -5,6 +5,7 @@ description: 'Add a Wakatime Coding Activity graph in your Readme'
inputs: inputs:
GH_TOKEN: GH_TOKEN:
description: 'GitHub access token with Repo scope' description: 'GitHub access token with Repo scope'
required: true
default: ${{ github.token }} default: ${{ github.token }}
WAKATIME_API_KEY: WAKATIME_API_KEY: