-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.29 KB
/
kekl.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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Update KEKL Data
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * 1'
jobs:
kekl:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.TM_GITHUB_TOKEN }}
TM_EMAIL: ${{ secrets.TM_EMAIL }}
TM_PW: ${{ secrets.TM_PW }}
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.TM_GITHUB_TOKEN }}
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 16.13.x
cache: npm
- name: npm ci
run: npm ci
- name: node .
run: node .
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.TM_GITHUB_TOKEN }}
file: data.json
asset_name: data.json
tag: LATEST
overwrite: true
body: "The latest version of KEKL data"
- name: Notify KEKL Hunt
run: |
git config --global user.name 'hmatt1'
git config --global user.email "${TM_EMAIL}"
git config --global credential.helper cache
git clone https://${{secrets.TM_GITHUB_TOKEN}}@github.com/Trackmania-USA/kekl-hunt
cd kekl-hunt
date +%s > data-updated.txt
git add .
git commit -m "$(date)"
git push