From faf2bb99e1c3205f634761b1ab4f6dfff699a3aa Mon Sep 17 00:00:00 2001 From: Nikhil Kumar Rajak Date: Tue, 2 Jun 2026 10:46:32 +0000 Subject: [PATCH 1/2] feat: add repository_dispatch trigger and simplify release.yml --- .github/workflows/release.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e2981cd..a2b9afde 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,10 +7,8 @@ on: description: 'Release tag (e.g. v5.99.0)' required: true type: string - commit: - description: 'Target commit SHA or branch' - required: true - type: string + repository_dispatch: + types: [webpack-release] permissions: contents: write @@ -20,8 +18,7 @@ jobs: sync: runs-on: ubuntu-latest env: - TAG: ${{ inputs.tag }} - COMMIT: ${{ inputs.commit }} + TAG: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.tag || inputs.tag }} steps: - name: Checkout @@ -40,8 +37,7 @@ jobs: shell: bash run: | set -euo pipefail - node scripts/update-versions.mjs "$TAG" - echo "$COMMIT" > HEAD_COMMIT + node scripts/update-versions.mjs "$TAG" - name: Open pull request uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 @@ -50,6 +46,6 @@ jobs: commit-message: 'chore: sync to webpack@${{ env.TAG }}' title: 'chore: sync to webpack@${{ env.TAG }}' body: | - Automated version sync triggered by the `${{ env.TAG }}` release of `${{ env.COMMIT }}`. + Automated version sync triggered by the `${{ env.TAG }}` webpack release. branch: 'update-versions' draft: true From 579e248bebc9496f468a846765e7f6e9116da07c Mon Sep 17 00:00:00 2001 From: Nikhil Kumar Rajak Date: Tue, 2 Jun 2026 13:02:12 +0000 Subject: [PATCH 2/2] chore: replace repository_dispatch with workflow_dispatch --- .github/workflows/release.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2b9afde..f4bd7422 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,9 +7,6 @@ on: description: 'Release tag (e.g. v5.99.0)' required: true type: string - repository_dispatch: - types: [webpack-release] - permissions: contents: write pull-requests: write @@ -18,7 +15,7 @@ jobs: sync: runs-on: ubuntu-latest env: - TAG: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.tag || inputs.tag }} + TAG: ${{ inputs.tag }} steps: - name: Checkout