File tree Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Expand file tree Collapse file tree 1 file changed +62
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' 🔗 Update Dependencies Main'
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ workflow_dispatch :
8
+ inputs :
9
+ base :
10
+ description : The Base Ref to apply the diff
11
+ required : false
12
+ default : ' main'
13
+
14
+ schedule :
15
+ - cron : ' 0 12 * * *'
16
+
17
+ permissions :
18
+ contents : read
19
+
20
+ jobs :
21
+ update-dependencies :
22
+ if : github.repository_owner == 'streetsidesoftware'
23
+ runs-on : ubuntu-latest
24
+ env :
25
+ NEW_BRANCH : update-dependencies-${{ inputs.base || github.ref_name || 'main' }}
26
+ REF_BRANCH : ${{ inputs.base || github.ref_name || 'main' }}
27
+ PR_TYPE : ci
28
+ steps :
29
+ - name : Checkout code
30
+ uses : actions/checkout@v4
31
+ with :
32
+ ref : ${{ env.REF_BRANCH }}
33
+
34
+ - name : Setup
35
+ uses : streetsidesoftware/actions/public/setup-node-pnpm@v1
36
+
37
+ - name : Install
38
+ run : pnpm install
39
+
40
+ - name : Update packages
41
+ run : |
42
+ pnpm up
43
+
44
+ - name : PR Body
45
+ id : body
46
+ uses : streetsidesoftware/actions/public/pr-body@v1
47
+ with :
48
+ title : ' Workflow Bot -- Update ALL Dependencies'
49
+ path : >-
50
+ package.json
51
+ README.md
52
+
53
+ - name : PR
54
+ uses : streetsidesoftware/actions/.github/actions/pr@v1
55
+ with :
56
+ commit-message : ' ${{ env.PR_TYPE }}: ${{ steps.body.outputs.title }}'
57
+ branch : ${{ env.NEW_BRANCH }}
58
+ base : ${{ env.REF_BRANCH }}
59
+ title : ' ${{ env.PR_TYPE }}: ${{ steps.body.outputs.title }} (${{ env.REF_BRANCH }})'
60
+ body : ${{ steps.body.outputs.body }}
61
+ app_id : ${{ secrets.AUTOMATION_APP_ID }}
62
+ app_private_key : ${{ secrets.AUTOMATION_PRIVATE_KEY }}
You can’t perform that action at this time.
0 commit comments