Skip to content

Commit a19378d

Browse files
committed
Added webhook action for updating tstl automatically
1 parent 7d353db commit a19378d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/auto-update.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: webhook-auto-update
2+
3+
on:
4+
repository_dispatch:
5+
types:
6+
- update-tstl
7+
8+
jobs:
9+
build:
10+
name: build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
- name: Setup Node.js environment
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: "12"
19+
- name: Update TSTL
20+
run: npm update typescript-to-lua
21+
- name: Commit update
22+
run: |
23+
git config --global user.name 'lolleko'
24+
git config --global user.email 'lolleko@users.noreply.github.com'
25+
git commit -am "Automated tstl update"
26+
git push

0 commit comments

Comments
 (0)