diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f384f22 --- /dev/null +++ b/.github/workflows/main.yml @@ -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@ 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"