File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Update Composer Dependencies
2
+
3
+ on :
4
+ schedule :
5
+ - cron : ' 0 0 * * 0' # Runs every Sunday at midnight
6
+ workflow_dispatch : # Allows you to manually trigger the workflow
7
+
8
+ jobs :
9
+ update-dependencies :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout repository
14
+ uses : actions/checkout@v2
15
+
16
+ - name : Set up PHP
17
+ uses : shivammathur/setup-php@v2
18
+ with :
19
+ php-version : ' 7.4' # Adjust PHP version if needed
20
+
21
+ - name : Validate composer.json and composer.lock
22
+ run : composer validate --strict
23
+
24
+ - name : Update dependencies
25
+ run : composer update
26
+
27
+ - name : Commit updated dependencies
28
+ run : |
29
+ git config --global user.name 'github-actions[bot]'
30
+ git config --global user.email 'github-actions[bot]@users.noreply.github.com'
31
+ git add composer.json composer.lock
32
+ git commit -m 'Update Composer dependencies'
33
+ continue-on-error : true
34
+
35
+ - name : Push changes
36
+ if : success()
37
+ run : git push origin HEAD:main
You can’t perform that action at this time.
0 commit comments