-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (51 loc) · 1.5 KB
/
call-codegen.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Codegen
on:
workflow_call:
inputs:
PR_NUMBER:
required: true
type: number
secrets:
USER_GITHUB_TOKEN:
required: true
jobs:
rush-update:
name: rush update
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
- name: setup Node
uses: actions/setup-node@v3
with:
node-version: '18.18.0'
- name: Check out code base
uses: actions/checkout@v3
- name: checkout code base
run: gh pr checkout ${{ inputs.PR_NUMBER }}
env:
GH_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}
- name: cache rush
id: cache
uses: actions/[email protected]
with:
path: common/temp
key: ${{ runner.os }}-build-branch-${{ hashFiles('common/config/rush/repo-state.json') }}
restore-keys: |
${{ runner.os }}-build-pr-
${{ runner.os }}-build-
${{ runner.os }}-
- name: rush update
run: node common/scripts/install-run-rush.js update
- name: rush build
run: node common/scripts/install-run-rush.js build
- name: push changes
run: |
npm install --global lint-staged
npm install --global prettier
git config --global user.email "[email protected]"
git config --global user.name "dependabot[bot]"
git add .
git commit -m 'chore(deps): update shrinkwrap'
git push
env:
GH_TOKEN: ${{ secrets.USER_GITHUB_TOKEN }}