Skip to content

Commit 8730f7e

Browse files
pshao25Pan Shao
andauthored
Make regen code by comment (#5341)
* Make regen code by comment * update --------- Co-authored-by: Pan Shao <[email protected]>
1 parent 6415142 commit 8730f7e

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/regenerate-code.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
name: Regenerate all code
2-
on: workflow_dispatch
2+
on:
3+
workflow_dispatch:
4+
issue_comment:
5+
types: [created]
36

47
jobs:
58
build:
9+
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'issue_comment' && github.event.issue.pull_request && github.event.comment.body == 'regen')
610
timeout-minutes: 120
711
runs-on: windows-latest
812
steps:
@@ -11,15 +15,15 @@ jobs:
1115
with:
1216
fetch-depth: 0
1317

14-
- name: Setup node 18
18+
- name: Setup node 22
1519
uses: actions/setup-node@v3
1620
with:
17-
node-version: '18'
21+
node-version: '22'
1822

1923
- name: Setup .net core sdk
2024
uses: actions/setup-dotnet@v3
2125
with:
22-
dotnet-version: '7.0.x'
26+
dotnet-version: '9.0.x'
2327

2428
- name: Install packages
2529
run: |

0 commit comments

Comments
 (0)