-
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (35 loc) · 1.26 KB
/
civix-upgrade.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: civix upgrade
on:
push
env:
COMPOSER_COMPILE: all
jobs:
upgrade-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install civix and regenerate module
run: |
composer global config minimum-stability dev
composer global config --no-plugins allow-plugins.civicrm/composer-downloads-plugin true
composer global config --no-plugins allow-plugins.civicrm/composer-compile-plugin true
composer global require civicrm/civix
/home/runner/.composer/vendor/bin/civix upgrade
- name: Commit and push changes
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
add_timestamp: true
commit_prefix: "CIVIBLD-287 [AUTO] "
commit_message: "civix upgraded"
force: false
target_branch: civix-upgrade
- name: Create pull request
uses: devops-infra/action-pull-request@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
body: "**Automated pull request** - civix regenerated"
title: "Automated pull request - civix regenerated"
assignee: "agileware-fj"
label: "auto"