forked from Azure/autorest.csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 933 Bytes
/
regenerate-code.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
name: Regenerate all code
on: workflow_dispatch
jobs:
build:
timeout-minutes: 120
runs-on: windows-latest
steps:
- name: Checkout branch
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup node 18
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Setup .net core sdk
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.x'
- name: Install packages
run: |
npm ci
- name: Generate code
shell: pwsh
run: |
./eng/Generate.ps1
- name: Commit generated code
run: |
git config --global user.name 'actions-user'
git config --global user.email '[email protected]'
git add .
git commit -m "Regenerate all code (any successful run even without change will have a new commit)"
git push