From 84347faef4e7cda86563084d10dc85bd656f161b Mon Sep 17 00:00:00 2001 From: svitlanadykun Date: Tue, 15 Sep 2026 12:03:05 +0200 Subject: [PATCH] fix: checkout actions repo when called from Core or Pro [ED-25263] github.event_name in a reusable workflow is the caller event, so dispatch from Pro checked out elementor-pro and missed install-deps. Co-authored-by: Cursor --- .github/workflows/post-release-check.yml | 8 ++++---- actions/post-release-verify/README.md | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/post-release-check.yml b/.github/workflows/post-release-check.yml index 583c763e9..81c35a970 100644 --- a/.github/workflows/post-release-check.yml +++ b/.github/workflows/post-release-check.yml @@ -83,13 +83,13 @@ jobs: pro_zip_available: ${{ steps.verify.outputs.pro-zip-path != '' }} steps: - name: Checkout this repository - if: github.event_name != 'workflow_call' + if: github.repository == 'elementor/elementor-editor-github-actions' uses: actions/checkout@v4 with: persist-credentials: false - name: Checkout post-release actions - if: github.event_name == 'workflow_call' + if: github.repository != 'elementor/elementor-editor-github-actions' uses: actions/checkout@v4 with: repository: elementor/elementor-editor-github-actions @@ -151,13 +151,13 @@ jobs: || needs.verify-published.outputs.pro_zip_available == 'true') steps: - name: Checkout this repository - if: github.event_name != 'workflow_call' + if: github.repository == 'elementor/elementor-editor-github-actions' uses: actions/checkout@v4 with: persist-credentials: false - name: Checkout post-release actions - if: github.event_name == 'workflow_call' + if: github.repository != 'elementor/elementor-editor-github-actions' uses: actions/checkout@v4 with: repository: elementor/elementor-editor-github-actions diff --git a/actions/post-release-verify/README.md b/actions/post-release-verify/README.md index 600c95325..a05b52c88 100644 --- a/actions/post-release-verify/README.md +++ b/actions/post-release-verify/README.md @@ -32,6 +32,8 @@ Changelog prose is dumped on the job summary for a quick human read. The action Add a thin workflow in `elementor` / `elementor-pro` that `uses` this repo. `actions_ref` is required and must be the **same git ref** as the `uses:` pin. After this workflow is on `main`, that ref is `main`. +In the reusable workflow, `github.event_name` is the **caller's** event (e.g. `workflow_dispatch`). Checkout of this repo is keyed off `github.repository`, not `workflow_call`. + Merge this repo first. Core/Pro callers that pin `@main` will fail until then. This repo must allow GitHub Actions access from other Elementor repositories (Settings → Actions → General → Access).