File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5151 run : |
5252 echo "⚠️ Tag v${{ steps.version.outputs.version }} already exists, skipping tag creation"
5353
54- - name : Trigger release workflow
54+ - name : Wait for release workflow to trigger
5555 if : steps.check_tag.outputs.exists == 'false'
56- uses : actions/github-script@v7
57- with :
58- github-token : ${{ secrets.PAT_TOKEN }}
59- script : |
60- await github.rest.actions.createWorkflowDispatch({
61- owner: context.repo.owner,
62- repo: context.repo.repo,
63- workflow_id: 'release.yml',
64- ref: `v${{ steps.version.outputs.version }}`,
65- inputs: {
66- tag: `v${{ steps.version.outputs.version }}`
67- }
68- });
69- console.log('✅ Triggered release workflow for v${{ steps.version.outputs.version }}');
56+ run : |
57+ echo "✅ Tag v${{ steps.version.outputs.version }} created"
58+ echo "The Release workflow will be automatically triggered by the tag push"
59+ echo "Using PAT_TOKEN ensures the push event triggers workflows"
You can’t perform that action at this time.
0 commit comments