Create main.yml

This commit is contained in:
Avinal Kumar
2020-11-08 13:26:38 +05:30
committed by GitHub
parent 3429c16f65
commit 7d97ee5f15

21
.github/workflows/main.yml vendored Normal file
View 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"