File tree Expand file tree Collapse file tree 2 files changed +41
-33
lines changed Expand file tree Collapse file tree 2 files changed +41
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Validate Pull Request
2
+ on :
3
+ pull_request :
4
+ jobs :
5
+ deno :
6
+ name : Ensure Deno types are synchronized
7
+ runs-on : ubuntu-latest
8
+ permissions :
9
+ contents : write
10
+ pull-requests : write
11
+ steps :
12
+ - name : Checkout Project
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Use Node.js
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ cache : ' yarn'
19
+ node-version-file : package.json
20
+
21
+ - name : Install Dependencies
22
+ run : yarn
23
+
24
+ - name : Run Check Script
25
+ run : node ./scripts/actions/report-deno-not-ran.mjs
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
+ validate-supported-versions :
29
+ runs-on : ubuntu-latest
30
+ name : Disallow unsupported API versions
31
+ steps :
32
+ - name : Check for unsupported API changes
33
+ env :
34
+ GH_TOKEN : ${{ github.token }}
35
+ run : |
36
+ PATTERNS="gateway/v6.ts|gateway/v8.ts|payloads/v6/|payloads/v8/|rest/v6/|rest/v8/|rpc/v8.ts|utils/v8.ts|voice/v8.ts|^v6.ts$|^v8.ts$"
37
+
38
+ if gh pr view ${{ github.event.pull_request.number }} --repo ${{github.repository}} --json files --jq ".files[].path | select(test(\"$PATTERNS\"))" | grep -q .; then
39
+ echo "::error::Unsupported API versions modified. Please make changes to current API versions only."
40
+ exit 1
41
+ fi
You can’t perform that action at this time.
0 commit comments