File tree Expand file tree Collapse file tree 2 files changed +53
-9
lines changed
Expand file tree Collapse file tree 2 files changed +53
-9
lines changed Original file line number Diff line number Diff line change @@ -39,15 +39,6 @@ updates:
3939 - " system-ca"
4040 - " saslprep"
4141
42- electron :
43- patterns :
44- - " electron"
45- - " @electron/remote"
46- - " @electron/rebuild"
47- - " browserslist"
48- - " node-abi"
49- update-types : ["minor", "patch"]
50-
5142 devtools-shared-prod :
5243 patterns :
5344 - " @mongodb-js/get-os-info"
Original file line number Diff line number Diff line change 1+ name : Update electron
2+
3+ # Runs nightly and manually
4+ on :
5+ workflow_dispatch :
6+ schedule :
7+ - cron : " 0 0 * * *"
8+
9+ jobs :
10+ update_generated_files :
11+ name : Update Electron
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v3
15+ with :
16+ # don't checkout a detatched HEAD
17+ ref : ${{ github.head_ref }}
18+
19+ # this is important so git log can pick up on
20+ # the whole history to generate the list of AUTHORS
21+ fetch-depth : ' 0'
22+
23+ - name : Setup git
24+ run : |
25+ git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
26+ git config --local user.name "github-actions[bot]"
27+ - uses : actions/setup-node@v2
28+ with :
29+ node-version : ^16.20.2
30+ cache : ' npm'
31+
32+ 33+ run : |
34+ 35+ - name : Install Dependencies
36+ run : |
37+ npm -v
38+ npm ci
39+ - name : Bump packages
40+ run : |
41+ node scripts/update-electron.js
42+ git add .
43+ git commit --no-allow-empty -m "chore: update electron" || true
44+ - name : Create Pull Request
45+ id : cpr
46+ uses : peter-evans/create-pull-request@v4
47+ with :
48+ token : ${{ secrets.SVC_DEVTOOLSBOT_TOKEN }}
49+ commit-message : ' chore: update electron'
50+ branch : ci/update-electron
51+ title : ' chore: update electron'
52+ body : |
53+ - Update electron
You can’t perform that action at this time.
0 commit comments