This reusable GitHub Actions workflow sets up a WordPress + CiviCRM environment and runs civix upgrade on a CiviCRM extension.
.civix-upgrade.yml
To use this workflow in another repo, add the following to .github/workflows/upgrade.yml:
name: Upgrade Extension
on:
push
jobs:
upgrade:
uses: agileware/ci-workflows/civix-upgrade-template-final.yml@main
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
# Optional
# inputs:
# EXTENSION_NAME: my_custom_extensionDOCKERHUB_USERDOCKERHUB_TOKEN
- If
EXTENSION_NAMEis not provided, the workflow defaults to the name of the calling repository.