From 7d97ee5f15edddb6accdb5bfc37c5c743e224315 Mon Sep 17 00:00:00 2001 From: Avinal Kumar <185067@nith.ac.in> Date: Sun, 8 Nov 2020 13:26:38 +0530 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/main.yml 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"