Skip to content

chore!: Deprecate connector schemas #84

chore!: Deprecate connector schemas

chore!: Deprecate connector schemas #84

name: Slash Command Dispatch
on:
issue_comment:
types: [created]
permissions:
contents: read
issues: write
pull-requests: write
actions: write
jobs:
slash-command-dispatch:
name: Slash Command Dispatch
# Only allow slash commands on pull requests (not on issues)
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- name: Authenticate as GitHub App
uses: actions/create-github-app-token@v3
id: app-token
continue-on-error: ${{ github.actor == 'dependabot[bot]' }}
with:
app-id: ${{ secrets.OCTAVIA_BOT_APP_ID }}
private-key: ${{ secrets.OCTAVIA_BOT_PRIVATE_KEY }}
- name: Warn on GitHub App auth fallback
if: steps.app-token.outcome == 'failure'
run: |
echo "::warning::GitHub App authentication failed (secrets may not be available in this context). Falling back to GITHUB_TOKEN."
- name: Slash Command Dispatch
id: dispatch
uses: peter-evans/slash-command-dispatch@9bdcd7914ec1b75590b790b844aa3b8eee7c683a # v5.0.2
with:
repository: ${{ github.repository }}
token: ${{ steps.app-token.outputs.token || secrets.GITHUB_TOKEN }}
dispatch-type: workflow
issue-type: pull-request
commands: |
generate
pre-release
static-args: |
pr=${{ github.event.issue.number }}
comment-id=${{ github.event.comment.id }}
# Only run for users with 'write' permission on the main repository
permission: write
- name: Edit comment with error message
if: steps.dispatch.outputs.error-message
uses: peter-evans/create-or-update-comment@v5
with:
comment-id: ${{ github.event.comment.id }}
body: |
> Error: ${{ steps.dispatch.outputs.error-message }}