This GitHub action automates the running of https://github.com/AmpersandHQ/ampersand-magento2-upgrade-patch-helper
You can manually run the upgrade patch helper by following the instructions here.
In your repository create a .github/workflows/upgrade-patch-helper.yml on the default branch with the following contents
name: Upgrade Patch Helper
on:
workflow_dispatch:
inputs:
branch-to-compare-from:
description: 'The branch to compare from, without your changes'
type: string
required: true
branch-to-compare-to:
description: 'The branch to compare to, with your changes'
type: string
required: true
php-version:
description: 'The PHP version to use, eg 8.1/8.2/8.3/8.4'
required: true
type: string
with-gui-artifacts:
description: "Set this flag to upload artifacts for https://github.com/elgentos/magento2-upgrade-gui"
type: boolean
required: true
default: false
allow-composer-patch-plugins:
description: "Allow cweagans/composer-patches and vaimo/composer-patches to run during install"
type: boolean
required: false
default: false
jobs:
upgrade-patch-helper:
uses: bluefinchcommerce/upgrade-patch-helper-github-action/.github/workflows/upgrade-patch-helper.yml@1.0.0
with:
branch-to-compare-from: ${{ inputs.branch-to-compare-from }}
branch-to-compare-to: ${{ inputs.branch-to-compare-to }}
php-version: ${{ inputs.php-version }}
with-gui-artifacts: ${{ inputs.with-gui-artifacts }}
allow-composer-patch-plugins: ${{ inputs.allow-composer-patch-plugins }}
secrets:
composer-auth: '${{ secrets.COMPOSER_AUTH }}'To run the composer install commands a valid auth.json needs to be provided.
-
Please read the official Adobe documentation detailing the usage of
auth.json -
Follow the official GitHub documentation and add a
COMPOSER_AUTHsecret containing a validauth.json -
This
COMPOSER_AUTHsecret is only ever used to create a~/.composer/auth.jsonfile within your GitHub action runner.
You can manually trigger executions of the patch helper by following this process.
-
On the top of your repository click "Actions"
-
On the left hand side below "All workflows" click "Upgrade Patch Helper"
-
You will see the following interface, on the right hand side click "Run workflow"

-
Fill in the requested details and click "Run workflow"
Leave
allow-composer-patch-pluginsdisabled unless the project needs Composer patch plugins to run while installing the branch being analysed. When disabled, the workflow preventscweagans/composer-patchesandvaimo/composer-patchesfrom applying patches during the final install. -
The page will refresh and not show anything. Give it a few seconds then refresh the page again. You should see a running job indicated by an orange icon. Click into that job.
-
Once the job completes you will be able to see the artifacts available for download

-
Review each
WARNentry against alongside the patch helper documentation.
