Context
Part of the gh-gcs epic (#93).
Once the fulll/gh-gcs release workflow exists (#96), cd.yaml must dispatch a repository_dispatch event to fulll/gh-gcs at the end of a successful release so that the extension is always kept in sync without any manual step.
Goal
Add a final step to the release job in .github/workflows/cd.yaml:
- name: Trigger gh-gcs release
env:
GH_TOKEN: ${{ secrets.GH_GCS_DISPATCH_TOKEN }}
run: |
gh api repos/fulll/gh-gcs/dispatches \
--method POST \
--field event_type=new-release \
--field 'client_payload[version]=${{ github.ref_name }}'
Required secret
GH_GCS_DISPATCH_TOKEN: a GitHub PAT (or fine-grained token) scoped to fulll/gh-gcs with contents: write permission. Must be added to the fulll/github-code-search repository secrets.
The step must run after the release assets are fully uploaded and the GitHub Release is created.
Acceptance criteria
Context
Part of the
gh-gcsepic (#93).Once the
fulll/gh-gcsrelease workflow exists (#96),cd.yamlmust dispatch arepository_dispatchevent tofulll/gh-gcsat the end of a successful release so that the extension is always kept in sync without any manual step.Goal
Add a final step to the
releasejob in.github/workflows/cd.yaml:Required secret
GH_GCS_DISPATCH_TOKEN: a GitHub PAT (or fine-grained token) scoped tofulll/gh-gcswithcontents: writepermission. Must be added to thefulll/github-code-searchrepository secrets.The step must run after the release assets are fully uploaded and the GitHub Release is created.
Acceptance criteria
vX.Y.Ztag togithub-code-searchautomatically triggers thegh-gcsrelease workflowgh-gcsrelease is created with the matching version tag within ~5 min of thegithub-code-searchreleaseGH_GCS_DISPATCH_TOKENfails visibly in the workflow log (non-silent failure)workflow_dispatchongh-gcsstill works as a fallback