@@ -639,45 +639,31 @@ jobs:
639639
640640 - name : Trigger module release for fast channel
641641 if : ${{ inputs.dry_run != true && inputs.module_release == true }}
642- uses : actions/github-script@v7
643- with :
644- github-token : ${{ secrets.GITHUB_TOKEN }}
645- script : |
646- console.log('Triggering module release for fast channel...');
647- await github.rest.actions.createWorkflowDispatch({
648- owner: context.repo.owner,
649- repo: context.repo.repo,
650- workflow_id: 'module-release.yml',
651- ref: '${{ github.ref_name }}',
652- inputs: {
653- version: '${{ inputs.version }}',
654- channel: 'fast',
655- dry_run: 'false',
656- auto_merge: 'true'
657- }
658- });
659- console.log('Module release workflow triggered for fast channel');
642+ env :
643+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
644+ run : |
645+ echo "Triggering module release for fast channel..."
646+ gh workflow run module-release.yml \
647+ --ref "${{ github.ref_name }}" \
648+ -f version="${{ inputs.version }}" \
649+ -f channel="fast" \
650+ -f dry_run="false" \
651+ -f auto_merge="true"
652+ echo "Module release workflow triggered for fast channel"
660653
661654 - name : Trigger module release for experimental channel
662655 if : ${{ inputs.dry_run != true && inputs.module_release == true }}
663- uses : actions/github-script@v7
664- with :
665- github-token : ${{ secrets.GITHUB_TOKEN }}
666- script : |
667- console.log('Triggering module release for experimental channel...');
668- await github.rest.actions.createWorkflowDispatch({
669- owner: context.repo.owner,
670- repo: context.repo.repo,
671- workflow_id: 'module-release.yml',
672- ref: '${{ github.ref_name }}',
673- inputs: {
674- version: '${{ inputs.version }}',
675- channel: 'experimental',
676- dry_run: 'false',
677- auto_merge: 'true'
678- }
679- });
680- console.log('Module release workflow triggered for experimental channel');
656+ env :
657+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
658+ run : |
659+ echo "Triggering module release for experimental channel..."
660+ gh workflow run module-release.yml \
661+ --ref "${{ github.ref_name }}" \
662+ -f version="${{ inputs.version }}" \
663+ -f channel="experimental" \
664+ -f dry_run="false" \
665+ -f auto_merge="true"
666+ echo "Module release workflow triggered for experimental channel"
681667
682668 - name : Release success summary
683669 if : ${{ success() && inputs.dry_run != true }}
@@ -706,7 +692,7 @@ jobs:
706692
707693 ### What's Next?
708694 1. Verify the release at the URL above
709- 2. Monitor the module release PRs (will auto-merge when checks pass)
695+ 2. Monitor the module release PRs
710696 3. Announce the release to the team
711697 4. Update external documentation if needed
712698
0 commit comments