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 1414 runs-on : ubuntu-latest
1515 steps :
1616 - name : Checkout repository
17+ if : github.event_name != 'pull_request'
1718 uses : actions/checkout@v4
1819
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+
1927 - name : Setup Node.js
2028 uses : actions/setup-node@v4
2129 with :
3240 - name : Build
3341 run : npm run build
3442
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 "203399718+cloudnode-bot@users.noreply.github.com"
54+ git config --global user.name "Cloudnode [bot]"
55+ git config --global user.email "203399718+cloudnode-bot@users.noreply.github.com"
56+ git add "**/index.ts"
57+ git commit -S -m "chore: update indices"
58+ git push
59+
3560 - name : Pack
3661 run : npm pack
3762
Original file line number Diff line number Diff line change 11/* Auto-generated by generateIndices.sh */
22export * from "./Request.js" ;
3- export * from "./ServerErrorRegistry.js" ;
43export * from "./Server.js" ;
4+ export * from "./ServerErrorRegistry.js" ;
55export * from "./response/index.js" ;
66export * from "./routing/index.js" ;
Original file line number Diff line number Diff line change 11/* Auto-generated by generateIndices.sh */
2- export * from "./RouteRegistry .js" ;
2+ export * from "./EndpointRoute .js" ;
33export * from "./Route.js" ;
4+ export * from "./RouteRegistry.js" ;
You can’t perform that action at this time.
0 commit comments