File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Expand file tree Collapse file tree 1 file changed +53
-0
lines changed 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+ permissions :
10+ contents : none # We use the github app token to push the changes
11+
12+ jobs :
13+ update_eslint :
14+ name : Update ESLint
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Create Github App Token
18+ uses : mongodb-js/devtools-shared/actions/setup-bot-token@main
19+ id : app-token
20+ with :
21+ app-id : ${{ vars.DEVTOOLS_BOT_APP_ID }}
22+ private-key : ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
23+
24+ - uses : actions/checkout@v4
25+ with :
26+ # don't checkout a detatched HEAD
27+ ref : ${{ github.head_ref || github.ref_name }}
28+ token : ${{ steps.app-token.outputs.token }}
29+
30+ - uses : actions/setup-node@v4
31+ with :
32+ node-version : 22.15.1
33+ cache : ' npm'
34+
35+ 36+ run : |
37+ 38+
39+ - name : Bump eslint
40+ run : |
41+ npm i --save eslint@8 -w @mongodb-js/eslint-config-compass
42+
43+ - name : Create Pull Request
44+ uses : peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5
45+ with :
46+ token : ${{ steps.app-token.outputs.token }}
47+ commit-message : ' chore(deps): update eslint'
48+ branch : ci/update-electron
49+ title : ' chore(deps): update eslint'
50+ labels : no-title-validation
51+ author : ' ${{ steps.app-token.outputs.app-slug}}[bot] <${{ steps.app-token.outputs.app-email }}>'
52+ body : |
53+ - Update ESLint to latest 8
You can’t perform that action at this time.
0 commit comments