Skip to content

Commit 9adf9f7

Browse files
committed
feat(release): notify managed services
1 parent 65dc5e6 commit 9adf9f7

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,3 +486,20 @@ jobs:
486486
pnpm --filter=publish exec tsx src/ci/bin.ts publish-crates \
487487
--version ${{ needs.context.outputs.version }} \
488488
--allow-dirty
489+
490+
notify-managed-services:
491+
name: Notify managed services
492+
needs: [context, publish-npm, release-assets, publish-crates]
493+
if: ${{ success() && needs.context.outputs.trigger == 'release' }}
494+
runs-on: ubuntu-latest
495+
steps:
496+
- name: Notify managed services
497+
env:
498+
GH_TOKEN: ${{ secrets.MANAGED_SERVICES_DISPATCH_TOKEN }}
499+
VERSION: ${{ needs.context.outputs.version }}
500+
run: |
501+
gh api --method POST /repos/rivet-dev/services/dispatches \
502+
-f event_type=downstream-release \
503+
-f client_payload[product]=agentos \
504+
-f client_payload[version]="$VERSION" \
505+
-f client_payload[sha]="$GITHUB_SHA"

0 commit comments

Comments
 (0)