File tree 1 file changed +51
-0
lines changed
1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Transitive Dependencies
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 15 15 * * 5" # weekly, on Friday morning (UTC)
6
+ workflow_dispatch : null
7
+
8
+ jobs :
9
+ update :
10
+ runs-on : macos-latest
11
+ permissions :
12
+ pull-requests : write
13
+ steps :
14
+ - uses : actions/checkout@v4
15
+ - uses : pnpm/action-setup@v4
16
+ with :
17
+ version : 9
18
+ - uses : actions/setup-node@v4
19
+ with :
20
+ node-version : 20
21
+ - name : remove and re-create lock file
22
+ run : |
23
+ rm pnpm-lock.yaml
24
+ pnpm install --fix-lockfile
25
+ pnpm dedupe
26
+ - name : Create Pull Request
27
+ id : cpr
28
+ uses : peter-evans/create-pull-request@v7
29
+ with :
30
+ token : ${{ secrets.PAT }}
31
+ commit-message : Update Transitive Dependencies
32
+ title : Update Transitive Dependencies
33
+ body : |
34
+ - Dependency updates
35
+
36
+ Auto-generated by [create-pull-request][1]
37
+
38
+ [1]: https://github.com/peter-evans/create-pull-request
39
+ branch : auto-update-dependencies
40
+ labels : dependencies
41
+ - name : Approve Pull Request
42
+ run : gh pr review --approve -b "Auto Approved" ${{ steps.cpr.outputs.pull-request-number }}
43
+ env :
44
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
+ - name : Enable Pull Request Automerge and Label for Tests
46
+ if : steps.cpr.outputs.pull-request-operation == 'created'
47
+ run : |
48
+ gh pr edit --add-label "run ui tests" ${{ steps.cpr.outputs.pull-request-number }}
49
+ gh pr merge --merge --auto ${{ steps.cpr.outputs.pull-request-number }}
50
+ env :
51
+ GH_TOKEN : ${{ secrets.PAT }}
You can’t perform that action at this time.
0 commit comments