File tree Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Expand file tree Collapse file tree 3 files changed +28
-2
lines changed Original file line number Diff line number Diff line change 14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout repository
17
+ if : github.event_name != 'pull_request'
17
18
uses : actions/checkout@v4
18
19
20
+ - name : Checkout PR branch
21
+ if : github.event_name == 'pull_request'
22
+ uses : actions/checkout@v4
23
+ with :
24
+ ref : ${{ github.event.pull_request.head.ref }}
25
+ token : ${{ secrets.BOT_GH_TOKEN }}
26
+
19
27
- name : Setup Node.js
20
28
uses : actions/setup-node@v4
21
29
with :
32
40
- name : Build
33
41
run : npm run build
34
42
43
+ - name : Check uncommitted indices
44
+ id : uncommitted_indices
45
+ if : github.event_name == 'pull_request'
46
+ run : |
47
+ echo "has_changes=$([ -n "$(git diff --name-only HEAD "**/index.ts")" ] && echo "true" || echo "false")" >> $GITHUB_OUTPUT
48
+
49
+ - name : Commit indices
50
+ if : github.event_name == 'pull_request' && steps.uncommitted_indices.outputs.has_changes == 'true'
51
+ run : |
52
+ echo "${{ secrets.BOT_PGP_KEY }}" | gpg --import --batch
53
+ git config --global user.signingkey "[email protected] "
54
+ git config --global user.name "Cloudnode [bot]"
55
+ git config --global user.email "[email protected] "
56
+ git add "**/index.ts"
57
+ git commit -S -m "chore: update indices"
58
+ git push
59
+
35
60
- name : Pack
36
61
run : npm pack
37
62
Original file line number Diff line number Diff line change 1
1
/* Auto-generated by generateIndices.sh */
2
2
export * from "./Request.js" ;
3
- export * from "./ServerErrorRegistry.js" ;
4
3
export * from "./Server.js" ;
4
+ export * from "./ServerErrorRegistry.js" ;
5
5
export * from "./response/index.js" ;
6
6
export * from "./routing/index.js" ;
Original file line number Diff line number Diff line change 1
1
/* Auto-generated by generateIndices.sh */
2
- export * from "./RouteRegistry .js" ;
2
+ export * from "./EndpointRoute .js" ;
3
3
export * from "./Route.js" ;
4
+ export * from "./RouteRegistry.js" ;
You can’t perform that action at this time.
0 commit comments