Repository navigation
70 lines (56 loc) · 2.12 KB
/
Copy pathsync-types.yml
File metadata and controls
70 lines (56 loc) · 2.12 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
62
63
64
65
66
67
68
69
70
name: Sync Deno & web types
on:
schedule:
- cron: "0 6 1 * *"
workflow_dispatch:
# Read-only by default; the job below raises it to open a pull request.
permissions:
contents: read
jobs:
sync-types:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
with:
# This job's token can write to the repository and the steps below
# run third-party code, so don't leave it in .git/config for them.
# create-pull-request pushes with its own token regardless.
persist-credentials: false
- name: Install Deno
uses: denoland/setup-deno@22d081ff2d3a40755e97629de92e3bcbfa7cf2ed # v2.0.5
- 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@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
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