From 87bb14a31ac2370b308108703f1ffe96578a6695 Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Wed, 8 Jul 2026 12:44:34 +0200 Subject: [PATCH 1/4] Rename new-docs.yml to docs.yml --- .github/workflows/docs.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..36032edfa --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,32 @@ +name: "Documentation (Reusable)" + +on: + pull_request_target: + branches: + - "[0-9]+.[0-9]+" + - "[0-9]+.x" + - "docs_actions" + paths: + - "doc/**" + - ".github/workflows/new-docs.yml" + - "README.md" + push: + branches: + - "[0-9]+.[0-9]+" + - "[0-9]+.x" + - "docs_actions" + paths: + - "doc/**" + - ".github/workflows/new-docs.yml" + - "README.md" + +permissions: + contents: read + +jobs: + docs: + uses: pimcore/workflows-collection-public/.github/workflows/reusable-docs.yaml@main + with: + docs_path: "doc" + secrets: + DOCS_GENERATOR_ACCESS_TOKEN: ${{ secrets.DOCS_GENERATOR_ACCESS_TOKEN }} From a9bf8150373320082354a4fb6a1a1444d0a6f2b6 Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Wed, 8 Jul 2026 12:44:35 +0200 Subject: [PATCH 2/4] Remove new-docs.yml after rename to docs.yml --- .github/workflows/new-docs.yml | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 .github/workflows/new-docs.yml diff --git a/.github/workflows/new-docs.yml b/.github/workflows/new-docs.yml deleted file mode 100644 index 36032edfa..000000000 --- a/.github/workflows/new-docs.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: "Documentation (Reusable)" - -on: - pull_request_target: - branches: - - "[0-9]+.[0-9]+" - - "[0-9]+.x" - - "docs_actions" - paths: - - "doc/**" - - ".github/workflows/new-docs.yml" - - "README.md" - push: - branches: - - "[0-9]+.[0-9]+" - - "[0-9]+.x" - - "docs_actions" - paths: - - "doc/**" - - ".github/workflows/new-docs.yml" - - "README.md" - -permissions: - contents: read - -jobs: - docs: - uses: pimcore/workflows-collection-public/.github/workflows/reusable-docs.yaml@main - with: - docs_path: "doc" - secrets: - DOCS_GENERATOR_ACCESS_TOKEN: ${{ secrets.DOCS_GENERATOR_ACCESS_TOKEN }} From 247822a873771ceb99d7048073daa68f0a78fe7c Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Wed, 8 Jul 2026 12:44:36 +0200 Subject: [PATCH 3/4] Rename new-static-analysis.yaml to static-analysis.yaml --- .github/workflows/static-analysis.yaml | 92 ++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 .github/workflows/static-analysis.yaml diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml new file mode 100644 index 000000000..6178dff60 --- /dev/null +++ b/.github/workflows/static-analysis.yaml @@ -0,0 +1,92 @@ +name: "Static analysis centralised" + +on: + schedule: + - cron: '0 3 * * 1,3,5' + workflow_dispatch: + pull_request_target: + types: [ opened, synchronize, reopened ] + paths-ignore: + - 'assets/**' + - 'assets-customized/**' + - 'doc/**' + - 'install/**' + - 'src/Resources/public/**' + push: + paths-ignore: + - 'assets/**' + - 'assets-customized/**' + - 'doc/**' + - 'install/**' + - 'src/Resources/public/**' + branches: + - "[0-9]+.[0-9]+" + - "[0-9]+.x" + +env: + PIMCORE_PROJECT_ROOT: ${{ github.workspace }} + PRIVATE_REPO: ${{ github.event.repository.private }} + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} + cancel-in-progress: true + +jobs: + setup-matrix: + runs-on: ubuntu-latest + outputs: + php_versions: ${{ steps.parse-php-versions.outputs.php_versions }} + phpstan_matrix: ${{ steps.set-matrix.outputs.phpstan_matrix }} + private_repo: ${{ env.PRIVATE_REPO }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + + - name: Checkout reusable workflow repo + uses: actions/checkout@v4 + with: + repository: pimcore/workflows-collection-public + ref: main + path: reusable-workflows + + - name: Parse PHP versions from composer.json + id: parse-php-versions + run: | + if [ -f composer.json ]; then + php_versions=$(jq -r '.require.php' composer.json | grep -oP '\d+\.\d+' | tr '\n' ',' | sed 's/,$//') + if [ -z "$php_versions" ]; then + echo "php_versions=default" >> "$GITHUB_OUTPUT" + else + echo "php_versions=$php_versions" >> "$GITHUB_OUTPUT" + fi + else + exit 1 + fi + + - name: Set up matrix JSON + id: set-matrix + run: | + php_versions="${{ steps.parse-php-versions.outputs.php_versions }}" + MATRIX_JSON=$(cat reusable-workflows/phpstan-configuration/matrix-config.json) + FILTERED_MATRIX_JSON=$(echo "$MATRIX_JSON" | jq --arg php_versions "$php_versions" '{ include: [ .configs[] | select(.php_version == $php_versions) | .matrix[] ] }') + ENCODED_MATRIX_JSON=$(echo "$FILTERED_MATRIX_JSON" | jq -c .) + echo "phpstan_matrix=$ENCODED_MATRIX_JSON" >> "$GITHUB_OUTPUT" + + static-analysis: + needs: setup-matrix + uses: pimcore/workflows-collection-public/.github/workflows/reusable-static-analysis-unified.yaml@main + with: + phpstan_matrix: ${{ needs.setup-matrix.outputs.phpstan_matrix }} + private_repo: ${{ needs.setup-matrix.outputs.private_repo }} + APP_ENV: test + PIMCORE_TEST: 1 + REQUIRE_ADMIN_BUNDLE: "true" + COVERAGE: "none" + secrets: + SSH_PRIVATE_KEY_PIMCORE_DEPLOYMENTS_USER: ${{ secrets.SSH_PRIVATE_KEY_PIMCORE_DEPLOYMENTS_USER }} + COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN: ${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }} + PIMCORE_CI_INSTANCE_IDENTIFIER: ${{ secrets.PIMCORE_CI_INSTANCE_IDENTIFIER }} + PIMCORE_CI_ENCRYPTION_SECRET: ${{ secrets.PIMCORE_CI_ENCRYPTION_SECRET }} + PIMCORE_CI_PRODUCT_KEY: ${{ secrets.PIMCORE_CI_PRODUCT_KEY }} From 40aecf7401c2c127e7bed23184edeac08cee4d8a Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Wed, 8 Jul 2026 12:44:37 +0200 Subject: [PATCH 4/4] Remove new-static-analysis.yaml after rename to static-analysis.yaml --- .github/workflows/new-static-analysis.yaml | 92 ---------------------- 1 file changed, 92 deletions(-) delete mode 100644 .github/workflows/new-static-analysis.yaml diff --git a/.github/workflows/new-static-analysis.yaml b/.github/workflows/new-static-analysis.yaml deleted file mode 100644 index 6178dff60..000000000 --- a/.github/workflows/new-static-analysis.yaml +++ /dev/null @@ -1,92 +0,0 @@ -name: "Static analysis centralised" - -on: - schedule: - - cron: '0 3 * * 1,3,5' - workflow_dispatch: - pull_request_target: - types: [ opened, synchronize, reopened ] - paths-ignore: - - 'assets/**' - - 'assets-customized/**' - - 'doc/**' - - 'install/**' - - 'src/Resources/public/**' - push: - paths-ignore: - - 'assets/**' - - 'assets-customized/**' - - 'doc/**' - - 'install/**' - - 'src/Resources/public/**' - branches: - - "[0-9]+.[0-9]+" - - "[0-9]+.x" - -env: - PIMCORE_PROJECT_ROOT: ${{ github.workspace }} - PRIVATE_REPO: ${{ github.event.repository.private }} - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name }} - cancel-in-progress: true - -jobs: - setup-matrix: - runs-on: ubuntu-latest - outputs: - php_versions: ${{ steps.parse-php-versions.outputs.php_versions }} - phpstan_matrix: ${{ steps.set-matrix.outputs.phpstan_matrix }} - private_repo: ${{ env.PRIVATE_REPO }} - steps: - - name: Checkout code - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha || github.sha }} - - - name: Checkout reusable workflow repo - uses: actions/checkout@v4 - with: - repository: pimcore/workflows-collection-public - ref: main - path: reusable-workflows - - - name: Parse PHP versions from composer.json - id: parse-php-versions - run: | - if [ -f composer.json ]; then - php_versions=$(jq -r '.require.php' composer.json | grep -oP '\d+\.\d+' | tr '\n' ',' | sed 's/,$//') - if [ -z "$php_versions" ]; then - echo "php_versions=default" >> "$GITHUB_OUTPUT" - else - echo "php_versions=$php_versions" >> "$GITHUB_OUTPUT" - fi - else - exit 1 - fi - - - name: Set up matrix JSON - id: set-matrix - run: | - php_versions="${{ steps.parse-php-versions.outputs.php_versions }}" - MATRIX_JSON=$(cat reusable-workflows/phpstan-configuration/matrix-config.json) - FILTERED_MATRIX_JSON=$(echo "$MATRIX_JSON" | jq --arg php_versions "$php_versions" '{ include: [ .configs[] | select(.php_version == $php_versions) | .matrix[] ] }') - ENCODED_MATRIX_JSON=$(echo "$FILTERED_MATRIX_JSON" | jq -c .) - echo "phpstan_matrix=$ENCODED_MATRIX_JSON" >> "$GITHUB_OUTPUT" - - static-analysis: - needs: setup-matrix - uses: pimcore/workflows-collection-public/.github/workflows/reusable-static-analysis-unified.yaml@main - with: - phpstan_matrix: ${{ needs.setup-matrix.outputs.phpstan_matrix }} - private_repo: ${{ needs.setup-matrix.outputs.private_repo }} - APP_ENV: test - PIMCORE_TEST: 1 - REQUIRE_ADMIN_BUNDLE: "true" - COVERAGE: "none" - secrets: - SSH_PRIVATE_KEY_PIMCORE_DEPLOYMENTS_USER: ${{ secrets.SSH_PRIVATE_KEY_PIMCORE_DEPLOYMENTS_USER }} - COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN: ${{ secrets.COMPOSER_PIMCORE_REPO_PACKAGIST_TOKEN }} - PIMCORE_CI_INSTANCE_IDENTIFIER: ${{ secrets.PIMCORE_CI_INSTANCE_IDENTIFIER }} - PIMCORE_CI_ENCRYPTION_SECRET: ${{ secrets.PIMCORE_CI_ENCRYPTION_SECRET }} - PIMCORE_CI_PRODUCT_KEY: ${{ secrets.PIMCORE_CI_PRODUCT_KEY }}