-
-
Notifications
You must be signed in to change notification settings - Fork 319
43 lines (33 loc) · 1.08 KB
/
documentation-update.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
name: Regenerate Type Definitions
on:
[pull_request, pull_request_target]
permissions:
contents: write
pull-requests: write
jobs:
typeDefinitionsUpdate:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.PAT_GITHUB }}
steps:
- name: Checkout WeakAuras
uses: actions/checkout@v4
- name: Checkout PR
run: gh pr checkout ${{ github.event.pull_request.number }}
- name: Set up Homebrew
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master
- name: Install LuaLS
run: |
brew install lua-language-server
- name: Regenerate Type Definitions
run: |
cd .github/scripts/docs
./update-documentation-files.sh
shell: bash
- name: Push Changes to PR
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
git commit -am "Update generated types from ${GITHUB_SHA:0:7}" || true
git push