File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Expand file tree Collapse file tree 2 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 2
2
Bash script for updating Drupal core and/or contributed modules with Composer.
3
3
It can be used as a GitHub action or as a standalone script/integrated into other CI tools.
4
4
5
- ![ ] ( https://vallic.com/sites/default/files/2023-11/github_pr.png " GitHub Drupal Upgrades ")
6
-
7
5
## Features
8
6
* perform minor or major updates to Drupal core / contributed modules
9
7
* options to exclude modules from check and/or enable Drupal core checks
10
8
* outputs Markdown table of changes as a file or environment variable
9
+ * highlight failed patches
11
10
* can be used as a GitHub action
12
11
* can be used as a standalone script.
13
12
14
13
15
14
## GitHub Action Usage
15
+ ![ ] ( https://vallic.com/sites/default/files/2023-11/github_example.png " GitHub Drupal Upgrades ")
16
16
17
17
See [ action.yml] ( action.yml )
18
18
47
47
48
48
- name : Check updates
49
49
id : updates
50
- uses : valicm/drupal-update@v2
50
+ uses : valicm/drupal-update@v3
51
51
52
52
- name : create pull-request
53
53
uses : peter-evans/create-pull-request@v5
62
62
```
63
63
64
64
## Standalone script usage
65
+ ![ ] ( https://vallic.com/sites/default/files/2023-11/local_example.png " GitHub Drupal Upgrades ")
66
+
65
67
| Example | Command |
66
68
| -----------------------------------------------| ----------------------------------------------|
67
69
| Run all minor and security updates | ` bash drupal-update.sh ` |
Original file line number Diff line number Diff line change
1
+ name : Automated Drupal updates
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : ' 0 0 * * *'
7
+
8
+ jobs :
9
+ check-available-updates :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+
14
+ - name : Check updates
15
+ id : updates
16
+ uses : valicm/drupal-update@v3
17
+
18
+ - name : create pull-request
19
+ uses : peter-evans/create-pull-request@v5
20
+ with :
21
+ # Create personal token, and add that value under GitHub repository as MY_PERSONAL_TOKEN
22
+ token : ${{ secrets.MY_PERSONAL_TOKEN }}
23
+ commit-message : Automated Drupal updates
24
+ title : Automated Drupal updates
25
+ body : ${{ env.DRUPAL_UPDATES_TABLE }}
26
+ branch : drupal-automated-updates
27
+ delete-branch : true
You can’t perform that action at this time.
0 commit comments