-
Notifications
You must be signed in to change notification settings - Fork 67
44 lines (39 loc) · 1.14 KB
/
automate.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
name: Automate Repository
on:
push:
paths:
- "en.json"
- "contributors.json"
- "*.ts"
workflow_dispatch:
jobs:
auto:
runs-on: ubuntu-latest
name: "Automate Repository"
steps:
- uses: actions/checkout@v3
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Bottomify translations
run: deno run --allow-read --allow-write bottomify.ts
- name: Convert to enchantment table
run: deno run --allow-read --allow-write enchantment.ts
- name: Convert to leet code
run: deno run --allow-read --allow-write leet.ts
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
add: "*.json"
message: "chore: update automatic languages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update README
run: deno run --allow-read --allow-write calculate.ts
- name: Commit changes
uses: EndBug/add-and-commit@v4
with:
add: "*.md"
message: "chore: re-generate README"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}