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).