name: Release Notifier
permissions: {}
on:
  release:
    types:
      - published

jobs:
  notify:
    runs-on: ubuntu-latest
    steps:
      - uses: gr2m/release-notifier-action@v1
        with:
          # https://github.com/apps/openapi-release-notifier
          app_id: ${{ secrets.OPENAPI_RELEASE_NOTIFIER_APP_ID }}
          private_key: ${{ secrets.OPENAPI_RELEASE_NOTIFIER_PRIVATE_KEY }}
          dispatch_event_type: github-openapi-release
