-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.1 KB
/
wakatime.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Wakatime Leaderboards
on:
schedule:
# Runs every Monday at 12AM IST (UTC+5:30)
- cron: "30 18 * * 0"
workflow_dispatch:
push:
branches: master
paths:
- '.github/workflows/wakatime.yml'
- 'api/*.py'
jobs:
update-readme:
name: Wakatime Leaderboards
if: |
github.actor != 'dependabot[bot]' &&
github.actor != 'github-actions[bot]' &&
github.actor != 'protected-auto-commits[bot]'
runs-on: ubuntu-latest
steps:
- name: GitHub App Token
uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_PRIVATE_KEY }}
- name: Run Wakatime Leaderboards
uses: docker://nicconike/wakatime-leaderboards:latest
env:
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
GITHUB_REPOSITORY: ${{ github.repository }}
INPUT_WAKATIME_API_KEY: ${{ secrets.WAKATIME_API_KEY }}