Create main.yml
This commit is contained in:
21
.github/workflows/main.yml
vendored
Normal file
21
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
name: WakaTime stat update in README.md
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: main
|
||||||
|
schedule:
|
||||||
|
# Runs at 12 am '0 0 * * *' UTC
|
||||||
|
- cron: '1 0 * * *'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update-readme:
|
||||||
|
name: Update the WakaTime Stat
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Use avinal/Profile-Readme-WakaTime@<latest-release-tag> for latest stable release
|
||||||
|
# Do not change the line below except the word master with tag number maybe
|
||||||
|
- uses: avinal/Profile-Readme-WakaTime@master
|
||||||
|
with:
|
||||||
|
WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
BRANCH: "main"
|
||||||
Reference in New Issue
Block a user