forked from jsr-io/jsr
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.62 KB
/
sync-types.yml
File metadata and controls
61 lines (48 loc) · 1.62 KB
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
59
60
61
name: Sync Deno & web types
on:
schedule:
- cron: "0 6 1 * *"
workflow_dispatch:
jobs:
sync-types:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Deno
uses: denoland/setup-deno@v2
- name: Deno types
run: deno task tools:deno_symbols
- name: Update MDN
run: deno update @mdn/browser-compat-data
- name: Web types
run: deno task tools:web_symbols
- name: Check for changes
id: check-changes
run: |
git add api/src/api/docs/deno_types.json api/src/api/docs/web_builtins.json
if git diff --cached --quiet; then
echo "changes=false" >> $GITHUB_OUTPUT
else
echo "changes=true" >> $GITHUB_OUTPUT
fi
- name: Stage remaining files
run: git add deno.json deno.lock
- name: Create Pull Request
if: steps.check-changes.outputs.changes == 'true'
uses: peter-evans/create-pull-request@v8
with:
commit-message: |
chore: update Deno & web types
Automated update of Deno types and web types.
title: "chore: update Deno & web types"
body: |
## Summary
This PR updates the Deno types with the latest CLI version, and the web types with the latest @mdn/browser-compat-data version.
### Automation
This PR was created automatically by the monthly sync workflow.
branch: update-types
delete-branch: true