Cross-Provider Workflow

Sentry Release to GitHub Release to Slack

Version 1.0.0

Create a Sentry release, cut a GitHub release, then notify Slack.

1 workflow 3 source APIs 3 providers
View Spec View on GitHub ArazzoWorkflowsCross-Provider

Providers Orchestrated

sentry github slack

Workflows

sentry-release-to-github-to-slack
Create a Sentry release, cut a GitHub release, and notify Slack.
Registers a new release in Sentry, cuts the matching tagged GitHub release, and posts a Slack message that the version has shipped.
3 steps inputs: organizationSlug, owner, releaseNotes, repo, slackChannel, version outputs: messageTs, releaseUrl, sentryVersion
1
create-sentry-release
$sourceDescriptions.sentryApi.createRelease
Register a new release in Sentry for deployment tracking.
2
create-github-release
$sourceDescriptions.githubRepos.createRelease
Cut the matching tagged release in GitHub.
3
notify-slack
$sourceDescriptions.slackChat.postChatPostmessage
Notify a Slack channel that the version has shipped.

Source API Descriptions

Arazzo Workflow Specification

dev-sentry-release-to-github-release-slack.yml Raw ↑
arazzo: 1.0.1
info:
  title: Sentry Release to GitHub Release to Slack
  summary: Create a Sentry release, cut a GitHub release, then notify Slack.
  description: >-
    A release-management workflow that registers a new release in Sentry for
    deployment tracking, cuts the matching tagged release in GitHub, and notifies
    a Slack channel that the version has shipped. Demonstrates chaining an
    error-monitoring provider, a source-control provider, and a chat provider in
    a single Arazzo workflow.
  version: 1.0.0
sourceDescriptions:
  - name: sentryApi
    url: https://raw.githubusercontent.com/api-evangelist/sentry/refs/heads/main/openapi/sentry-api-openapi.yml
    type: openapi
  - name: githubRepos
    url: https://raw.githubusercontent.com/api-evangelist/github/refs/heads/main/openapi/github-repos-api-openapi.yml
    type: openapi
  - name: slackChat
    url: https://raw.githubusercontent.com/api-evangelist/slack/refs/heads/main/openapi/slack-chat-openapi.yml
    type: openapi
workflows:
  - workflowId: sentry-release-to-github-to-slack
    summary: Create a Sentry release, cut a GitHub release, and notify Slack.
    description: >-
      Registers a new release in Sentry, cuts the matching tagged GitHub
      release, and posts a Slack message that the version has shipped.
    inputs:
      type: object
      properties:
        organizationSlug:
          type: string
        version:
          type: string
        owner:
          type: string
        repo:
          type: string
        releaseNotes:
          type: string
        slackChannel:
          type: string
    steps:
      - stepId: create-sentry-release
        description: Register a new release in Sentry for deployment tracking.
        operationId: $sourceDescriptions.sentryApi.createRelease
        requestBody:
          contentType: application/json
          payload:
            version: $inputs.version
            projects:
              - $inputs.repo
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          sentryVersion: $response.body#/version
      - stepId: create-github-release
        description: Cut the matching tagged release in GitHub.
        operationId: $sourceDescriptions.githubRepos.createRelease
        requestBody:
          contentType: application/json
          payload:
            tag_name: $inputs.version
            name: $inputs.version
            body: $inputs.releaseNotes
            draft: false
            prerelease: false
        successCriteria:
          - condition: $statusCode == 201
        outputs:
          releaseUrl: $response.body#/html_url
      - stepId: notify-slack
        description: Notify a Slack channel that the version has shipped.
        operationId: $sourceDescriptions.slackChat.postChatPostmessage
        requestBody:
          contentType: application/json
          payload:
            channel: $inputs.slackChannel
            text: $steps.create-github-release.outputs.releaseUrl
        successCriteria:
          - condition: $statusCode == 200
        outputs:
          messageTs: $response.body#/ts
    outputs:
      sentryVersion: $steps.create-sentry-release.outputs.sentryVersion
      releaseUrl: $steps.create-github-release.outputs.releaseUrl
      messageTs: $steps.notify-slack.outputs.messageTs