From 43c7586e24f435b9a354871f555d35e94db14783 Mon Sep 17 00:00:00 2001 From: TangRufus Date: Wed, 15 Oct 2025 21:27:17 +0100 Subject: [PATCH] GitHub Actions: Dispact `Release` workflow after test --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 779ee7a..a5c5cf8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -211,3 +211,28 @@ jobs: pattern: php-matrix_* separate-directories: true delete-merged: true + + dispatch: + if: github.event_name == 'push' && github.ref_type == 'tag' + needs: + - pest + - build + - e2e + - merge + permissions: + actions: write + runs-on: ubuntu-24.04 + steps: + - name: Dispatch Release Workflow + run: | + gh workflow run release.yml \ + --repo "${REPO}" \ + --ref "${REF}" \ + -f version="${VERSION}" \ + -f run_id="${RUN_ID}" + env: + REPO: ${{ github.repository }} + REF: ${{ github.ref }} + VERSION: ${{ github.ref_name }} + RUN_ID: ${{ github.run_id }} + GH_TOKEN: ${{ github.token }}