Skip to content

Commit

Permalink
Add github workflow for civix
Browse files Browse the repository at this point in the history
  • Loading branch information
agileware-justin committed Aug 12, 2024
1 parent 683650b commit b3b0f26
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/civix-upgrade.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"

0 comments on commit b3b0f26

Please sign in to comment.