-
-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (29 loc) · 782 Bytes
/
update_commands.yaml
File metadata and controls
38 lines (29 loc) · 782 Bytes
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
name: Update tldr commands file
on:
push:
branches:
- master
schedule:
- cron: '0 0 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Python Environment
uses: actions/setup-python@v5
- name: Install Requirements
run: pip install -r ./tldrdict/requirements.txt
- name: Execute get pages and version zips
run: |
cd tldrdict
sudo apt install moreutils
./update_pages.sh
- name: setup git config
run: |
git config user.name ${{ secrets.USERNAME }}
git config user.email ${{ secrets.EMAIL }}
- name: commit changes
run: |
./tldrdict/commit.sh