diff --git a/.github/workflows/check-extension-README.md b/.github/workflows/check-extension-README.md index 663ed9c..1aa65d9 100644 --- a/.github/workflows/check-extension-README.md +++ b/.github/workflows/check-extension-README.md @@ -38,12 +38,12 @@ jobs: matrix: ${{ steps.supported-version.outputs.matrix }} steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/supported-version@main + - uses: graycoreio/github-actions-magento2/supported-version@v7 # x-release-please-major id: supported-version - run: echo ${{ steps.supported-version.outputs.matrix }} check-extension: needs: compute_matrix - uses: graycoreio/github-actions-magento2/.github/workflows/check-extension.yaml@main + uses: graycoreio/github-actions-magento2/.github/workflows/check-extension.yaml@v7 # x-release-please-major with: matrix: ${{ needs.compute_matrix.outputs.matrix }} ``` diff --git a/.github/workflows/check-store-README.md b/.github/workflows/check-store-README.md index d0094d4..506eb5f 100644 --- a/.github/workflows/check-store-README.md +++ b/.github/workflows/check-store-README.md @@ -40,7 +40,7 @@ on: jobs: check-store: - uses: graycoreio/github-actions-magento2/.github/workflows/check-store.yaml@main + uses: graycoreio/github-actions-magento2/.github/workflows/check-store.yaml@v7 # x-release-please-major secrets: composer_auth: ${{ secrets.COMPOSER_AUTH }} ``` @@ -52,7 +52,7 @@ If your pipeline builds or prepares the store in a prior job and uploads it as a ```yml jobs: check-store: - uses: graycoreio/github-actions-magento2/.github/workflows/check-store.yaml@main + uses: graycoreio/github-actions-magento2/.github/workflows/check-store.yaml@v7 # x-release-please-major secrets: composer_auth: ${{ secrets.COMPOSER_AUTH }} ``` diff --git a/.github/workflows/integration-README.md b/.github/workflows/integration-README.md index 873bc86..919812d 100644 --- a/.github/workflows/integration-README.md +++ b/.github/workflows/integration-README.md @@ -50,13 +50,13 @@ jobs: matrix: ${{ steps.supported-version.outputs.matrix }} steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/supported-version@main + - uses: graycoreio/github-actions-magento2/supported-version@v7 # x-release-please-major with: include_services: true id: supported-version integration-workflow: needs: compute_matrix - uses: graycoreio/github-actions-magento2/.github/workflows/integration.yaml@main + uses: graycoreio/github-actions-magento2/.github/workflows/integration.yaml@v7 # x-release-please-major with: package_name: my-vendor/package matrix: ${{ needs.compute_matrix.outputs.matrix }} diff --git a/cache-magento/README.md b/cache-magento/README.md index 4c187c1..e4fb311 100644 --- a/cache-magento/README.md +++ b/cache-magento/README.md @@ -33,7 +33,7 @@ The `composer.lock` hash is derived from `working-directory/composer.lock` using ### Extension (download cache only) ```yml -- uses: graycoreio/github-actions-magento2/cache-magento@main +- uses: graycoreio/github-actions-magento2/cache-magento@v7 # x-release-please-major with: composer_cache_key: ${{ inputs.composer_cache_key }} ``` @@ -41,13 +41,13 @@ The `composer.lock` hash is derived from `working-directory/composer.lock` using ### Extension or store (download + vendor stamp cache) ```yml -- uses: graycoreio/github-actions-magento2/setup-magento@main +- uses: graycoreio/github-actions-magento2/setup-magento@v7 # x-release-please-major id: setup-magento with: mode: extension # or store # ... -- uses: graycoreio/github-actions-magento2/cache-magento@main +- uses: graycoreio/github-actions-magento2/cache-magento@v7 # x-release-please-major with: composer_cache_key: ${{ inputs.composer_cache_key }} working-directory: ${{ steps.setup-magento.outputs.path }} @@ -69,7 +69,7 @@ As such, use `stamp: true` when `composer.lock` is stable across most runs — a > **Dependabot / Renovate:** Each time a Dependabot or Renovate PR is merged, the remaining open PRs rebase and each produces a new `composer.lock`. This cascades into a large number of unique cache entries, inflating storage costs without delivering proportional compute savings — because automated PRs are not waiting on fast feedback. The fix is to disable stamp caching for automated dependency PRs entirely: > > ```yml -> - uses: graycoreio/github-actions-magento2/cache-magento@main +> - uses: graycoreio/github-actions-magento2/cache-magento@v7 # x-release-please-major > with: > stamp: ${{ github.actor != 'dependabot[bot]' }} > ``` diff --git a/coding-standard/README.md b/coding-standard/README.md index 09003ee..fa69116 100644 --- a/coding-standard/README.md +++ b/coding-standard/README.md @@ -36,7 +36,7 @@ jobs: tools: composer:v2 coverage: none - - uses: graycoreio/github-actions-magento2/coding-standard@main + - uses: graycoreio/github-actions-magento2/coding-standard@v7 # x-release-please-major with: path: app/code # Optional, defaults to . version: 25 # Optional, will use the latest if omitted. diff --git a/fix-magento-install/README.md b/fix-magento-install/README.md index d74bec0..ad577ae 100644 --- a/fix-magento-install/README.md +++ b/fix-magento-install/README.md @@ -26,7 +26,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/fix-magento-install@main + - uses: graycoreio/github-actions-magento2/fix-magento-install@v7 # x-release-please-major with: magento_directory: path/to/magento ``` diff --git a/get-composer-version/README.md b/get-composer-version/README.md index d98d677..8889a33 100644 --- a/get-composer-version/README.md +++ b/get-composer-version/README.md @@ -25,7 +25,7 @@ jobs: name: A job to compute an installed Composer version. steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/get-composer-version@main + - uses: graycoreio/github-actions-magento2/get-composer-version@v7 # x-release-please-major id: get-composer-version - run: echo version ${{ steps.get-composer-version.outputs.version }} shell: bash diff --git a/get-magento-version/README.md b/get-magento-version/README.md index d2ae4a0..8ee1a99 100644 --- a/get-magento-version/README.md +++ b/get-magento-version/README.md @@ -25,7 +25,7 @@ jobs: name: A job to compute an installed Magento version. steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/get-magento-version@main + - uses: graycoreio/github-actions-magento2/get-magento-version@v7 # x-release-please-major id: get-magento-version - run: echo version ${{ steps.get-magento-version.outputs.version }} shell: bash diff --git a/release-please-config.json b/release-please-config.json index 17826fc..d2b30c5 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -8,7 +8,11 @@ "pull-request-title-pattern": "chore: release ${version}", "packages": { ".": { - "release-type": "node" + "release-type": "node", + "extra-files": [ + { "type": "generic", "path": "*/README.md", "glob": true }, + { "type": "generic", "path": ".github/workflows/*-README.md", "glob": true } + ] } } } diff --git a/sansec-ecomscan/README.md b/sansec-ecomscan/README.md index d53cc7a..b079510 100644 --- a/sansec-ecomscan/README.md +++ b/sansec-ecomscan/README.md @@ -28,7 +28,7 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/sansec-ecomscan@7.1.0 + - uses: graycoreio/github-actions-magento2/sansec-ecomscan@v7 # x-release-please-major with: license: ${{ secrets.SANSEC_LICENSE_KEY }} ``` diff --git a/semver-compare/README.md b/semver-compare/README.md index bd8d833..daec31f 100644 --- a/semver-compare/README.md +++ b/semver-compare/README.md @@ -31,7 +31,7 @@ jobs: name: A job to semantically compare two versions steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/semver-compare@main + - uses: graycoreio/github-actions-magento2/semver-compare@v7 # x-release-please-major with: version: 2.1.0 compare_against: 2.2.3 diff --git a/setup-di-compile/README.md b/setup-di-compile/README.md index d522e42..7811551 100644 --- a/setup-di-compile/README.md +++ b/setup-di-compile/README.md @@ -28,7 +28,7 @@ jobs: matrix: ${{ steps.supported-version.outputs.matrix }} steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/supported-version@main + - uses: graycoreio/github-actions-magento2/supported-version@v7 # x-release-please-major id: supported-version compile: @@ -40,19 +40,19 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/setup-magento@main + - uses: graycoreio/github-actions-magento2/setup-magento@v7 # x-release-please-major id: setup-magento with: php-version: ${{ matrix.php }} tools: composer:v${{ matrix.composer }} - - uses: graycoreio/github-actions-magento2/cache-magento@main + - uses: graycoreio/github-actions-magento2/cache-magento@v7 # x-release-please-major - run: composer install env: COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} - - uses: graycoreio/github-actions-magento2/setup-di-compile@main + - uses: graycoreio/github-actions-magento2/setup-di-compile@v7 # x-release-please-major with: path: ${{ steps.setup-magento.outputs.path }} ``` diff --git a/setup-install/README.md b/setup-install/README.md index d0272b8..a2c63a3 100644 --- a/setup-install/README.md +++ b/setup-install/README.md @@ -36,7 +36,7 @@ jobs: matrix: ${{ steps.supported-version.outputs.matrix }} steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/supported-version@main + - uses: graycoreio/github-actions-magento2/supported-version@v7 # x-release-please-major id: supported-version with: include_services: "true" @@ -51,7 +51,7 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento2/setup-magento@main + - uses: graycoreio/github-actions-magento2/setup-magento@v7 # x-release-please-major id: setup-magento with: php-version: ${{ matrix.php }} @@ -64,7 +64,7 @@ jobs: env: COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH }} - - uses: graycoreio/github-actions-magento2/setup-install@main + - uses: graycoreio/github-actions-magento2/setup-install@v7 # x-release-please-major with: services: ${{ toJSON(matrix.services) }} path: ${{ steps.setup-magento.outputs.path }} diff --git a/setup-magento/README.md b/setup-magento/README.md index 4a806bb..947735a 100644 --- a/setup-magento/README.md +++ b/setup-magento/README.md @@ -11,23 +11,23 @@ The action operates in two modes: ## Inputs -| Input | Required | Default | Description | -|-------|----------|---------|-------------| -| `php-version` | Yes | `8.4` | PHP version to install | -| `mode` | Yes | `extension` | Either `extension` or `store` | -| `magento_version` | No | `magento/project-community-edition:2.4.8-p3` | Magento version to install (extension mode only) | -| `magento_repository` | No | `https://mirror.mage-os.org/` | Composer repository URL for Magento packages | -| `tools` | No | - | PHP tools to install globally (e.g., `composer:v2`) | -| `extensions` | No | - | Additional PHP extensions to install | -| `coverage` | No | - | Code coverage driver (e.g., `xdebug`, `pcov`) | -| `working-directory` | No | `.` | Working directory for the action | -| `apply_fixes` | No | `false` | Apply Magento installation fixes (always applied in extension mode) | -| `composer_auth` | No | - | Composer authentication credentials JSON | +| Input | Required | Default | Description | +| -------------------- | -------- | -------------------------------------------- | ------------------------------------------------------------------- | +| `php-version` | Yes | `8.4` | PHP version to install | +| `mode` | Yes | `extension` | Either `extension` or `store` | +| `magento_version` | No | `magento/project-community-edition:2.4.8-p3` | Magento version to install (extension mode only) | +| `magento_repository` | No | `https://mirror.mage-os.org/` | Composer repository URL for Magento packages | +| `tools` | No | - | PHP tools to install globally (e.g., `composer:v2`) | +| `extensions` | No | - | Additional PHP extensions to install | +| `coverage` | No | - | Code coverage driver (e.g., `xdebug`, `pcov`) | +| `working-directory` | No | `.` | Working directory for the action | +| `apply_fixes` | No | `false` | Apply Magento installation fixes (always applied in extension mode) | +| `composer_auth` | No | - | Composer authentication credentials JSON | ## Outputs -| Output | Description | -|--------|-------------| +| Output | Description | +| ------ | --------------------------------------------------- | | `path` | Absolute path to the Magento installation directory | ## Usage @@ -51,7 +51,7 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento/setup-magento@main + - uses: graycoreio/github-actions-magento2/setup-magento@v7 # x-release-please-major id: setup-magento with: php-version: "8.3" @@ -89,7 +89,7 @@ jobs: steps: - uses: actions/checkout@v6 - - uses: graycoreio/github-actions-magento/setup-magento@main + - uses: graycoreio/github-actions-magento2/setup-magento@v7 # x-release-please-major id: setup-magento with: php-version: "8.3" @@ -107,4 +107,4 @@ jobs: - The action uses [shivammathur/setup-php](https://github.com/shivammathur/setup-php) for PHP installation - By default, Magento packages are fetched from the [Mage-OS mirror](https://mirror.mage-os.org/) which doesn't require authentication -- For Adobe Commerce or private packages, provide `composer_auth` with your credentials \ No newline at end of file +- For Adobe Commerce or private packages, provide `composer_auth` with your credentials diff --git a/supported-version/README.md b/supported-version/README.md index ee1cb3b..37e18a1 100644 --- a/supported-version/README.md +++ b/supported-version/README.md @@ -51,7 +51,7 @@ jobs: outputs: matrix: ${{ steps.supported-version.outputs.matrix }} steps: - - uses: graycoreio/github-actions-magento2/supported-version@main + - uses: graycoreio/github-actions-magento2/supported-version@v7 # x-release-please-major id: supported-version - run: echo ${{ steps.supported-version.outputs.matrix }} ```