Skip to content

Commit 3544b35

Browse files
committed
chore(ci): trigger lsp_utils workflow on release
1 parent 4ed6eb2 commit 3544b35

File tree

2 files changed

+33
-6
lines changed

2 files changed

+33
-6
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,18 @@ jobs:
3939
- uses: actions/setup-python@v6
4040
with:
4141
python-version: '3.14'
42-
- run: sudo apt update
43-
- run: sudo apt install --no-install-recommends -y x11-xserver-utils
44-
- run: pip3 install mypy==1.18.2 flake8==7.1.1 pyright==1.1.407 orjson==3.11.4 --user
42+
- run: pip3 install tox --user
4543
- run: echo "$HOME/.local/bin" >> $GITHUB_PATH
46-
- run: mypy stubs
47-
- run: flake8 plugin tests
48-
- run: pyright plugin
44+
- run: tox
45+
46+
dispatch:
47+
runs-on: ubuntu-latest
48+
permissions:
49+
contents: write
50+
steps:
51+
- name: Repository Dispatch
52+
uses: peter-evans/repository-dispatch@v4
53+
with:
54+
token: ${{ secrets.STREVIEWBOT_PERSONAL_ACCESS_TOKEN }}
55+
repository: sublimelsp/lsp_utils
56+
event-type: new_release

.github/workflows/on_release.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: On Release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
dispatch:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
steps:
14+
- name: Repository Dispatch
15+
uses: peter-evans/repository-dispatch@v4
16+
with:
17+
token: ${{ secrets.LSP_UTILS_REPOSITORY_DISPATCH_TOKEN }}
18+
repository: sublimelsp/lsp_utils
19+
event-type: new_release

0 commit comments

Comments
 (0)