Skip to content

Commit 7220956

Browse files
committed
ci: restore release dispatch — GITHUB_TOKEN releases skip release:published event
1 parent 92bf903 commit 7220956

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,29 @@ on:
88
permissions:
99
contents: write
1010
pull-requests: write
11+
actions: write
1112

1213
jobs:
1314
release-please:
1415
runs-on: ubuntu-latest
1516
steps:
1617
- uses: googleapis/release-please-action@v4
18+
id: release
1719
with:
1820
config-file: .release-please-config.json
1921
manifest-file: .release-please-manifest.json
22+
23+
# GITHUB_TOKEN-created releases don't fire the release:published event,
24+
# so we dispatch the release workflow explicitly.
25+
- name: Trigger release build
26+
if: steps.release.outputs.release_created == 'true'
27+
uses: actions/github-script@v7
28+
with:
29+
script: |
30+
await github.rest.actions.createWorkflowDispatch({
31+
owner: context.repo.owner,
32+
repo: context.repo.repo,
33+
workflow_id: 'release.yml',
34+
ref: 'main',
35+
inputs: { tag: '${{ steps.release.outputs.tag_name }}' }
36+
})

0 commit comments

Comments
 (0)