-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (42 loc) · 1.4 KB
/
waka.yaml
File metadata and controls
53 lines (42 loc) · 1.4 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# name: Daily Workflow
# on:
# schedule:
# - cron: '* */6 * * *'
# push:
# branches:
# - main
# permissions:
# contents: write
# jobs:
# run-script:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v2
# with:
# ref: main
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.x'
# - name: Install dependencies
# run: |
# cp .env.example .env
# echo "GITHUB_TOKEN=${{ secrets.GH_TOKEN }}" >> .env
# echo "WAKA_TOKEN=${{ secrets.WAKA_KEY }}" >> .env
# cat .env
# # pip install -r requirements.txt
# # pip install python-dotenv
# - name: Load environment variables
# run: |
# echo "Loading environment variables from .env"
# set -o allexport; source .env; set +o allexport
# - name: Run main.py
# run: python src/main.py
# - name: Commit and push changes
# run: |
# git config --global user.name 'pphatdev'
# git config --global user.email 'pphat.kits@gmail.com'
# git add .
# git commit -m "Runs every 5 minutes, between 08:00 and 12:59. Actions schedules run at most every 5 minutes using UTC time. $(date +'%Y-%m-%d %H:%M:%S')" || echo "No changes to commit"
# git push